Enum remoc::rch::base::SendErrorKind
source · pub enum SendErrorKind {
Serialize(SerializationError),
Send(SendError),
MaxItemSizeExceeded,
}
Available on crate feature
rch
only.Expand description
Error kind that occurred during remote sending.
Variants§
Serialize(SerializationError)
Serialization of the item failed.
Send(SendError)
Sending of the serialized item over the chmux channel failed.
MaxItemSizeExceeded
Maximum item size was exceeded.
Implementations§
source§impl SendErrorKind
impl SendErrorKind
sourcepub fn is_disconnected(&self) -> bool
pub fn is_disconnected(&self) -> bool
True, if the remote endpoint closed the channel, was dropped or the connection failed.
sourcepub fn is_final(&self) -> bool
pub fn is_final(&self) -> bool
Returns whether the error is final, i.e. no further send operation can succeed.
sourcepub fn is_item_specific(&self) -> bool
pub fn is_item_specific(&self) -> bool
Returns whether the error is caused by the item to be sent.
Trait Implementations§
source§impl Clone for SendErrorKind
impl Clone for SendErrorKind
source§fn clone(&self) -> SendErrorKind
fn clone(&self) -> SendErrorKind
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 Debug for SendErrorKind
impl Debug for SendErrorKind
source§impl<'de> Deserialize<'de> for SendErrorKind
impl<'de> Deserialize<'de> for SendErrorKind
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 Display for SendErrorKind
impl Display for SendErrorKind
source§impl From<SendErrorKind> for SendErrorKind
impl From<SendErrorKind> for SendErrorKind
source§fn from(err: SendErrorKind) -> Self
fn from(err: SendErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SendErrorKind
impl !RefUnwindSafe for SendErrorKind
impl Send for SendErrorKind
impl Sync for SendErrorKind
impl Unpin for SendErrorKind
impl !UnwindSafe for SendErrorKind
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