#[repr(u32)]pub enum BusError {
Show 20 variants
Success = 0,
SerializationFailed = 1,
DeserializationFailed = 2,
InvalidWapm = 3,
FetchFailed = 4,
CompileError = 5,
IncorrectAbi = 6,
Aborted = 7,
InvalidHandle = 8,
InvalidTopic = 9,
MissingCallbacks = 10,
Unsupported = 11,
BadRequest = 12,
InternalFailure = 14,
MemoryAllocationFailed = 16,
BusInvocationFailed = 17,
AccessDenied = 18,
AlreadyConsumed = 19,
MemoryAccessViolation = 20,
Unknown = 4_294_967_295,
}
Variants§
Success = 0
SerializationFailed = 1
DeserializationFailed = 2
InvalidWapm = 3
FetchFailed = 4
CompileError = 5
IncorrectAbi = 6
Aborted = 7
InvalidHandle = 8
InvalidTopic = 9
MissingCallbacks = 10
Unsupported = 11
BadRequest = 12
InternalFailure = 14
MemoryAllocationFailed = 16
BusInvocationFailed = 17
AccessDenied = 18
AlreadyConsumed = 19
MemoryAccessViolation = 20
Unknown = 4_294_967_295
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BusError
impl<'de> Deserialize<'de> for BusError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Error for BusError
impl Error for BusError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Copy for BusError
Auto Trait Implementations§
impl Freeze for BusError
impl RefUnwindSafe for BusError
impl Send for BusError
impl Sync for BusError
impl Unpin for BusError
impl UnwindSafe for BusError
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