Enum async_proto::WriteError
source · [−]pub enum WriteError {
BufSize(TryFromIntError),
Custom(String),
Io(Arc<Error>),
Tungstenite(Arc<Error>),
Warp(Arc<Error>),
}Expand description
The error returned from the write and write_sync methods.
Variants
BufSize(TryFromIntError)
Tried to send a buffer with more than u64::MAX elements
Custom(String)
An error variant you can use when manually implementing Protocol
Io(Arc<Error>)
Tungstenite(Arc<Error>)
This is supported on crate feature
tokio-tungstenite only.Warp(Arc<Error>)
This is supported on crate feature
warp only.Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for WriteError
impl Send for WriteError
impl Sync for WriteError
impl Unpin for WriteError
impl !UnwindSafe for WriteError
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