Enum async_proto::WriteError
source · pub enum WriteError {
BufSize(TryFromIntError),
Custom(String),
Io(Error),
Tungstenite(Error),
Warp(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(Error)
Tungstenite(Error)
Available on crate features
tokio-tungstenite
or tungstenite
only.Warp(Error)
Available on crate feature
warp
only.Trait Implementations§
source§impl Debug for WriteError
impl Debug for WriteError
source§impl Display for WriteError
impl Display for WriteError
source§impl Error for WriteError
impl Error for WriteError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<'a> From<&'a str> for WriteError
impl<'a> From<&'a str> for WriteError
source§impl From<Error> for WriteError
impl From<Error> for WriteError
source§impl From<Error> for WriteError
impl From<Error> for WriteError
source§impl From<Error> for WriteError
impl From<Error> for WriteError
source§impl From<Infallible> for WriteError
impl From<Infallible> for WriteError
source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
source§impl From<String> for WriteError
impl From<String> for WriteError
source§impl From<TryFromIntError> for WriteError
impl From<TryFromIntError> for WriteError
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
source§impl From<WriteError> for Error
impl From<WriteError> for Error
source§fn from(e: WriteError) -> Self
fn from(e: WriteError) -> Self
Converts to this type from the input type.
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§
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