#[non_exhaustive]#[repr(u32)]pub enum Status {
Show 27 variants
Success = 1_048_576,
Failed = 2_148_532_225,
True = 1_048_578,
False = 1_048_579,
InvalidArgument = 2_148_532_228,
InvalidOperation = 2_148_532_229,
NotFound = 2_148_532_230,
OutOfRange = 2_148_532_231,
InsufficientBufferSize = 2_148_532_232,
NotEnoughMemory = 2_148_532_233,
BadSystemCall = 2_148_532_234,
NoMoreData = 2_149_580_800,
DecodingError = 2_149_580_801,
InstructionTooLong = 2_149_580_802,
BadRegister = 2_149_580_803,
IllegalLock = 2_149_580_804,
IllegalLegacyPfx = 2_149_580_805,
IllegalRex = 2_149_580_806,
InvalidMap = 2_149_580_807,
MalformedEvex = 2_149_580_808,
MalformedMvex = 2_149_580_809,
InvalidMask = 2_149_580_810,
SkipToken = 2_097_163,
ImpossibleInstruction = 2_149_580_812,
User = 3_289_382_912,
NotUTF8 = 3_289_382_913,
FormatterError = 3_289_382_914,
}
Expand description
Status code indicating either success or failure.
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.
Success = 1_048_576
Failed = 2_148_532_225
True = 1_048_578
False = 1_048_579
InvalidArgument = 2_148_532_228
InvalidOperation = 2_148_532_229
NotFound = 2_148_532_230
OutOfRange = 2_148_532_231
InsufficientBufferSize = 2_148_532_232
NotEnoughMemory = 2_148_532_233
BadSystemCall = 2_148_532_234
NoMoreData = 2_149_580_800
DecodingError = 2_149_580_801
InstructionTooLong = 2_149_580_802
BadRegister = 2_149_580_803
IllegalLock = 2_149_580_804
IllegalLegacyPfx = 2_149_580_805
IllegalRex = 2_149_580_806
InvalidMap = 2_149_580_807
MalformedEvex = 2_149_580_808
MalformedMvex = 2_149_580_809
InvalidMask = 2_149_580_810
SkipToken = 2_097_163
ImpossibleInstruction = 2_149_580_812
User = 3_289_382_912
Generic user-defined error (e.g. for use in formatter hooks).
NotUTF8 = 3_289_382_913
String isn’t UTF8 encoded.
FormatterError = 3_289_382_914
Rust formatter returned an error.
Implementations§
source§impl Status
impl Status
sourcepub fn module(self) -> usize
pub fn module(self) -> usize
Returns the module / ID space of this status code.
Search doc for “ZYAN_MODULE” for the corresponding constants. This is doesn’t return an enum because user-defined functions (e.g. formatter hooks) can return arbitrary values.
sourcepub fn description(self) -> &'static str
pub fn description(self) -> &'static str
Returns a human readable description of this status code.
Trait Implementations§
source§impl Error for Status
impl Error for Status
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl PartialEq for Status
impl PartialEq for Status
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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