pub enum RecvError {
Receive(RecvError),
Deserialize(DeserializationError),
MissingPorts(Vec<u32>),
MaxItemSizeExceeded,
}
Available on crate feature
rch
only.Expand description
An error that occurred during receiving from a remote endpoint.
Variantsยง
Receive(RecvError)
Receiving data over the chmux channel failed.
Deserialize(DeserializationError)
Deserialization of received data failed.
MissingPorts(Vec<u32>)
Chmux ports required for deserialization of received channels were not received.
MaxItemSizeExceeded
Maximum item size was exceeded.
Implementationsยง
Trait Implementationsยง
sourceยงimpl<'de> Deserialize<'de> for RecvError
impl<'de> Deserialize<'de> for RecvError
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 RecvError
impl Error for RecvError
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<DeserializationError> for RecvError
impl From<DeserializationError> for RecvError
sourceยงfn from(err: DeserializationError) -> Self
fn from(err: DeserializationError) -> Self
Converts to this type from the input type.
sourceยงimpl<TransportSinkError, TransportStreamError> From<RecvError> for ConsumeError<TransportSinkError, TransportStreamError>
impl<TransportSinkError, TransportStreamError> From<RecvError> for ConsumeError<TransportSinkError, TransportStreamError>
Auto Trait Implementationsยง
impl Freeze for RecvError
impl !RefUnwindSafe for RecvError
impl Send for RecvError
impl Sync for RecvError
impl Unpin for RecvError
impl !UnwindSafe for RecvError
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
sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
sourceยงdefault unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)