pub enum SendError {
Serialization(SerializationError),
ConnectionLost(ConnectionError),
StreamLost(StreamError),
}
Expand description
Errors that can occur when sending messages.
Variants
Serialization(SerializationError)
Failed to serialize message.
This likely indicates a bug in the library, since serializing to bytes should be infallible. Limitations in the serde API mean we cannot verify this statically, and we don’t want to introduce potential panics.
ConnectionLost(ConnectionError)
Connection was lost when trying to send a message.
StreamLost(StreamError)
Stream was lost when trying to send a message.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for SendError
impl !UnwindSafe for SendError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more