Enum oc_wasm_safe::component::MethodCallError
source · pub enum MethodCallError<'invoker> {
CborDecode,
BufferTooShort,
NoSuchComponent,
NoSuchMethod,
BadParameters(LastException<'invoker>),
QueueFull,
QueueEmpty,
BadDescriptor,
TooManyDescriptors,
Other(LastException<'invoker>),
Unknown,
}
Expand description
The possible errors that could occur during a method call.
Some errors carry additional information. This information is only available until the start of
the next method call. The 'invoker
lifetime ensures that the invoker cannot be reused to
start another method call until a value of this type is dropped and therefore the additional
error information is no longer accessible.
Variants§
CborDecode
BufferTooShort
NoSuchComponent
NoSuchMethod
BadParameters(LastException<'invoker>)
QueueFull
QueueEmpty
BadDescriptor
TooManyDescriptors
Other(LastException<'invoker>)
Unknown
Implementations§
Trait Implementations§
source§impl<'invoker> Clone for MethodCallError<'invoker>
impl<'invoker> Clone for MethodCallError<'invoker>
source§fn clone(&self) -> MethodCallError<'invoker>
fn clone(&self) -> MethodCallError<'invoker>
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<'invoker> Debug for MethodCallError<'invoker>
impl<'invoker> Debug for MethodCallError<'invoker>
source§impl Display for MethodCallError<'_>
impl Display for MethodCallError<'_>
source§impl Error for MethodCallError<'_>
impl Error for MethodCallError<'_>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<MethodCallError<'_>> for Error
impl From<MethodCallError<'_>> for Error
source§fn from(source: MethodCallError<'_>) -> Self
fn from(source: MethodCallError<'_>) -> Self
Converts to this type from the input type.
source§impl<'invoker> Hash for MethodCallError<'invoker>
impl<'invoker> Hash for MethodCallError<'invoker>
source§impl<'invoker> PartialEq for MethodCallError<'invoker>
impl<'invoker> PartialEq for MethodCallError<'invoker>
source§fn eq(&self, other: &MethodCallError<'invoker>) -> bool
fn eq(&self, other: &MethodCallError<'invoker>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Error> for MethodCallError<'static>
impl TryFrom<Error> for MethodCallError<'static>
impl<'invoker> Copy for MethodCallError<'invoker>
impl<'invoker> Eq for MethodCallError<'invoker>
impl<'invoker> StructuralPartialEq for MethodCallError<'invoker>
Auto Trait Implementations§
impl<'invoker> Freeze for MethodCallError<'invoker>
impl<'invoker> RefUnwindSafe for MethodCallError<'invoker>
impl<'invoker> Send for MethodCallError<'invoker>
impl<'invoker> Sync for MethodCallError<'invoker>
impl<'invoker> Unpin for MethodCallError<'invoker>
impl<'invoker> !UnwindSafe for MethodCallError<'invoker>
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