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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'invoker> Copy for MethodCallError<'invoker>
Source§impl<'invoker> Debug for MethodCallError<'invoker>
impl<'invoker> Debug for MethodCallError<'invoker>
Source§impl Display for MethodCallError<'_>
impl Display for MethodCallError<'_>
impl<'invoker> Eq for MethodCallError<'invoker>
Source§impl Error for MethodCallError<'_>
Available on crate feature std only.
impl Error for MethodCallError<'_>
Available on crate feature
std only.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()
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
Tests for
self and other values to be equal, and is used by ==.impl<'invoker> StructuralPartialEq for MethodCallError<'invoker>
Auto Trait Implementations§
impl<'invoker> !UnwindSafe for MethodCallError<'invoker>
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> UnsafeUnpin 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