Enum async_proto::ReadError [−][src]
pub enum ReadError {
BufSize(TryFromIntError),
Custom(String),
EndOfStream,
FloatNotFinite,
Io(Arc<Error>),
ReadNever,
Tungstenite(Arc<Error>),
UnknownVariant(u8),
Utf8(FromUtf8Error),
Warp(Arc<Error>),
}
Expand description
The error returned from the read
and read_sync
methods.
Variants
Received a buffer with more than usize::MAX
elements
Tuple Fields of BufSize
An error variant you can use when manually implementing Protocol
Tuple Fields of Custom
0: String
Used in the tokio-tungstenite
and warp
features
Used in the serde_json
feature
Attempted to read an empty type
Used in the tokio-tungstenite
feature
Tuple Fields of Tungstenite
0: Arc<Error>
Tuple Fields of UnknownVariant
0: u8
Tuple Fields of Utf8
Used in the warp
feature
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ReadError
impl !UnwindSafe for ReadError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self