pub enum HostErr<WireErr> {
Wire(WireErr),
BadResponse,
Postcard(Error),
Closed,
}
Expand description
Host Error Kind
Variants§
Wire(WireErr)
An error of the user-specified wire error type
BadResponse
We got a response that didn’t match the expected value or the user specified wire error type
Postcard(Error)
Deserialization of the message failed
Closed
The interface has been closed, and no further messages are possible
Trait Implementations§
impl<WireErr> StructuralPartialEq for HostErr<WireErr>
Auto Trait Implementations§
impl<WireErr> Freeze for HostErr<WireErr>where
WireErr: Freeze,
impl<WireErr> RefUnwindSafe for HostErr<WireErr>where
WireErr: RefUnwindSafe,
impl<WireErr> Send for HostErr<WireErr>where
WireErr: Send,
impl<WireErr> Sync for HostErr<WireErr>where
WireErr: Sync,
impl<WireErr> Unpin for HostErr<WireErr>where
WireErr: Unpin,
impl<WireErr> UnwindSafe for HostErr<WireErr>where
WireErr: 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