pub enum StreamReadError {
NotConnected,
Reset(VarInt),
QuicProto,
}Expand description
An error that arise from reading from a stream.
Variants§
NotConnected
Connection has been dropped.
Reset(VarInt)
The peer abandoned transmitting data on this stream
QuicProto
QUIC protocol error.
Trait Implementations§
Source§impl Clone for StreamReadError
impl Clone for StreamReadError
Source§fn clone(&self) -> StreamReadError
fn clone(&self) -> StreamReadError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamReadError
impl Debug for StreamReadError
Source§impl Display for StreamReadError
impl Display for StreamReadError
Source§impl Error for StreamReadError
impl Error for StreamReadError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<ReadError> for StreamReadError
impl From<ReadError> for StreamReadError
Source§impl PartialEq for StreamReadError
impl PartialEq for StreamReadError
impl Eq for StreamReadError
impl StructuralPartialEq for StreamReadError
Auto Trait Implementations§
impl Freeze for StreamReadError
impl RefUnwindSafe for StreamReadError
impl Send for StreamReadError
impl Sync for StreamReadError
impl Unpin for StreamReadError
impl UnwindSafe for StreamReadError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<S> IntoConnectOptions for Swhere
S: ToString,
impl<S> IntoConnectOptions for Swhere
S: ToString,
Source§fn into_options(self) -> ConnectOptions
fn into_options(self) -> ConnectOptions
Perform value-to-value conversion into
ConnectOptions.