Enum qp2p::SendError [−][src]
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.
Tuple Fields of Serialization
ConnectionLost(ConnectionError)Connection was lost when trying to send a message.
Tuple Fields of ConnectionLost
StreamLost(StreamError)Stream was lost when trying to send a message.
Tuple Fields of StreamLost
0: StreamErrorTrait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.