pub enum MessagingError {
EndpointNotFound {
token: UID,
},
DeserializationFailed {
message: String,
},
SerializationFailed {
message: String,
},
PeerError {
message: String,
},
QueueFull {
capacity: usize,
},
InvalidWellKnownToken {
index: u32,
max: usize,
},
TransportClosed,
InvalidState {
message: String,
},
NetworkError {
message: String,
},
MissingLocalAddress,
}Expand description
Errors that can occur in the messaging layer.
Variants§
EndpointNotFound
Endpoint not found for the given token.
DeserializationFailed
Failed to deserialize a message.
SerializationFailed
Failed to serialize a message.
PeerError
Peer connection error.
QueueFull
Queue is full and cannot accept more messages.
InvalidWellKnownToken
Invalid well-known token index.
TransportClosed
Transport is closed or shutting down.
InvalidState
Invalid state for the requested operation.
NetworkError
Network operation failed.
MissingLocalAddress
Builder missing required local address.
Trait Implementations§
Source§impl Debug for MessagingError
impl Debug for MessagingError
Source§impl Display for MessagingError
impl Display for MessagingError
Source§impl Error for MessagingError
impl Error for MessagingError
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<Error> for MessagingError
impl From<Error> for MessagingError
Source§impl From<MessagingError> for RpcError
impl From<MessagingError> for RpcError
Source§fn from(err: MessagingError) -> Self
fn from(err: MessagingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MessagingError
impl RefUnwindSafe for MessagingError
impl Send for MessagingError
impl Sync for MessagingError
impl Unpin for MessagingError
impl UnwindSafe for MessagingError
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