Enum dofus_protocol::game::exchange::exchange_item_auto_craft_stopped_event::ExchangeReplayStopReason
source · #[repr(i32)]pub enum ExchangeReplayStopReason {
Ok = 0,
User = 1,
MissingRessource = 2,
ImpossibleModification = 3,
}
Variants§
Implementations§
source§impl ExchangeReplayStopReason
impl ExchangeReplayStopReason
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of ExchangeReplayStopReason
.
sourcepub fn from_i32(value: i32) -> Option<ExchangeReplayStopReason>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ExchangeReplayStopReason>
Converts an i32
to a ExchangeReplayStopReason
, or None
if value
is not a valid variant.
source§impl ExchangeReplayStopReason
impl ExchangeReplayStopReason
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for ExchangeReplayStopReason
impl Clone for ExchangeReplayStopReason
source§fn clone(&self) -> ExchangeReplayStopReason
fn clone(&self) -> ExchangeReplayStopReason
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExchangeReplayStopReason
impl Debug for ExchangeReplayStopReason
source§impl Default for ExchangeReplayStopReason
impl Default for ExchangeReplayStopReason
source§fn default() -> ExchangeReplayStopReason
fn default() -> ExchangeReplayStopReason
Returns the “default value” for a type. Read more
source§impl From<ExchangeReplayStopReason> for i32
impl From<ExchangeReplayStopReason> for i32
source§fn from(value: ExchangeReplayStopReason) -> i32
fn from(value: ExchangeReplayStopReason) -> i32
Converts to this type from the input type.
source§impl Hash for ExchangeReplayStopReason
impl Hash for ExchangeReplayStopReason
source§impl Ord for ExchangeReplayStopReason
impl Ord for ExchangeReplayStopReason
source§fn cmp(&self, other: &ExchangeReplayStopReason) -> Ordering
fn cmp(&self, other: &ExchangeReplayStopReason) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ExchangeReplayStopReason
impl PartialEq for ExchangeReplayStopReason
source§impl PartialOrd for ExchangeReplayStopReason
impl PartialOrd for ExchangeReplayStopReason
source§impl TryFrom<i32> for ExchangeReplayStopReason
impl TryFrom<i32> for ExchangeReplayStopReason
source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<ExchangeReplayStopReason, UnknownEnumValue>
fn try_from(value: i32) -> Result<ExchangeReplayStopReason, UnknownEnumValue>
Performs the conversion.
impl Copy for ExchangeReplayStopReason
impl Eq for ExchangeReplayStopReason
impl StructuralPartialEq for ExchangeReplayStopReason
Auto Trait Implementations§
impl Freeze for ExchangeReplayStopReason
impl RefUnwindSafe for ExchangeReplayStopReason
impl Send for ExchangeReplayStopReason
impl Sync for ExchangeReplayStopReason
impl Unpin for ExchangeReplayStopReason
impl UnwindSafe for ExchangeReplayStopReason
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)