#[non_exhaustive]#[repr(u8)]pub enum AbortReason {
UnrecognizedOp = 0,
IncorrectMode = 1,
NoSource = 2,
InvalidOp = 3,
Refused = 4,
Undetermined = 5,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnrecognizedOp = 0
Unrecognized opcode
IncorrectMode = 1
Not in correct mode to respond
NoSource = 2
Cannot provide source
InvalidOp = 3
Invalid operand
Refused = 4
Refused
Undetermined = 5
Unable to determine
Trait Implementations§
Source§impl Clone for AbortReason
impl Clone for AbortReason
Source§fn clone(&self) -> AbortReason
fn clone(&self) -> AbortReason
Returns a duplicate 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 AbortReason
impl Debug for AbortReason
Source§impl From<AbortReason> for u8
impl From<AbortReason> for u8
Source§fn from(enum_value: AbortReason) -> Self
fn from(enum_value: AbortReason) -> Self
Converts to this type from the input type.
Source§impl Hash for AbortReason
impl Hash for AbortReason
Source§impl OperandEncodable for AbortReason
impl OperandEncodable for AbortReason
Source§impl PartialEq for AbortReason
impl PartialEq for AbortReason
Source§impl TryFrom<u8> for AbortReason
impl TryFrom<u8> for AbortReason
Source§type Error = TryFromPrimitiveError<AbortReason>
type Error = TryFromPrimitiveError<AbortReason>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for AbortReason
impl TryFromPrimitive for AbortReason
const NAME: &'static str = "AbortReason"
type Primitive = u8
type Error = TryFromPrimitiveError<AbortReason>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for AbortReason
impl Eq for AbortReason
impl StructuralPartialEq for AbortReason
Auto Trait Implementations§
impl Freeze for AbortReason
impl RefUnwindSafe for AbortReason
impl Send for AbortReason
impl Sync for AbortReason
impl Unpin for AbortReason
impl UnsafeUnpin for AbortReason
impl UnwindSafe for AbortReason
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