Enum wasefire_error::Space
source · #[non_exhaustive]#[repr(u8)]pub enum Space {
Generic = 0,
User = 1,
Internal = 2,
World = 3,
}
Expand description
Common error spaces.
Values from 0 to 127 (0x7f) are reserved for common error spaces and defined by this enum. Values from 128 (0x80) to 255 (0xff) are reserved for implementation-specific error spaces.
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.
Generic = 0
User = 1
The user made an error.
Internal = 2
The implementation failed.
World = 3
The world returned an error.
Trait Implementations§
source§impl TryFrom<u8> for Space
impl TryFrom<u8> for Space
§type Error = TryFromPrimitiveError<Space>
type Error = TryFromPrimitiveError<Space>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for Space
impl TryFromPrimitive for Space
impl Copy for Space
impl SpaceParam for Space
Auto Trait Implementations§
impl RefUnwindSafe for Space
impl Send for Space
impl Sync for Space
impl Unpin for Space
impl UnwindSafe for Space
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