Enum async_proto::WriteErrorKind
source · pub enum WriteErrorKind {
BufSize(TryFromIntError),
Custom(String),
Io(Error),
Tungstenite(Error),
}
Expand description
Specifies what went wrong while writing (sending) a value.
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.Trait Implementations§
source§impl Debug for WriteErrorKind
impl Debug for WriteErrorKind
source§impl Display for WriteErrorKind
impl Display for WriteErrorKind
source§impl Error for WriteErrorKind
impl Error for WriteErrorKind
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 WriteErrorKind
impl<'a> From<&'a str> for WriteErrorKind
source§impl From<Error> for WriteErrorKind
impl From<Error> for WriteErrorKind
source§impl From<Error> for WriteErrorKind
impl From<Error> for WriteErrorKind
source§impl From<Infallible> for WriteErrorKind
impl From<Infallible> for WriteErrorKind
source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
source§impl From<String> for WriteErrorKind
impl From<String> for WriteErrorKind
source§impl From<TryFromIntError> for WriteErrorKind
impl From<TryFromIntError> for WriteErrorKind
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
source§impl From<WriteErrorKind> for Error
impl From<WriteErrorKind> for Error
source§fn from(e: WriteErrorKind) -> Self
fn from(e: WriteErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for WriteErrorKind
impl !RefUnwindSafe for WriteErrorKind
impl Send for WriteErrorKind
impl Sync for WriteErrorKind
impl Unpin for WriteErrorKind
impl !UnwindSafe for WriteErrorKind
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more