Enum postcard_rpc::Error
source · pub enum Error<E> {
NoMatchingHandler {
key: Key,
seq_no: u32,
},
DispatchFailure(E),
Postcard(Error),
}
Expand description
Error type for Dispatch
Variants§
NoMatchingHandler
No handler was found for the given message. The decoded key and sequence number are returned
DispatchFailure(E)
The handler returned an error
Postcard(Error)
An error when decoding messages
Trait Implementations§
source§impl<E: PartialEq> PartialEq for Error<E>
impl<E: PartialEq> PartialEq for Error<E>
impl<E> StructuralPartialEq for Error<E>
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnwindSafe for Error<E>where
E: UnwindSafe,
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