pub enum StreamError {
Connection {
source: ConnectionError,
},
Reset {
code: VarInt,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for StreamError
impl Clone for StreamError
Source§fn clone(&self) -> StreamError
fn clone(&self) -> StreamError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StreamError
impl Debug for StreamError
Source§impl Display for StreamError
impl Display for StreamError
Source§impl Error for StreamError
impl Error for StreamError
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 ErrorCompat for StreamError
impl ErrorCompat for StreamError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl From<ConnectionError> for StreamError
impl From<ConnectionError> for StreamError
Source§fn from(error: ConnectionError) -> Self
fn from(error: ConnectionError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for StreamError
impl From<Error> for StreamError
Source§impl From<Infallible> for StreamError
impl From<Infallible> for StreamError
Source§fn from(value: Infallible) -> Self
fn from(value: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<StreamError> for StreamDecodeError
impl From<StreamError> for StreamDecodeError
Source§fn from(error: StreamError) -> Self
fn from(error: StreamError) -> Self
Converts to this type from the input type.
Source§impl From<StreamError> for StreamEncodeError
impl From<StreamError> for StreamEncodeError
Source§fn from(error: StreamError) -> Self
fn from(error: StreamError) -> Self
Converts to this type from the input type.
Source§impl From<StreamError> for StreamError
impl From<StreamError> for StreamError
Source§fn from(value: StreamError) -> Self
fn from(value: StreamError) -> Self
Converts to this type from the input type.
Source§impl From<StreamError> for MessageStreamError
impl From<StreamError> for MessageStreamError
Source§fn from(error: StreamError) -> Self
fn from(error: StreamError) -> Self
Converts to this type from the input type.
Source§impl From<StreamError> for InitialRawMessageStreamError
impl From<StreamError> for InitialRawMessageStreamError
Source§fn from(error: StreamError) -> Self
fn from(error: StreamError) -> Self
Converts to this type from the input type.
Source§impl From<StreamError> for AcceptRawMessageStreamError
impl From<StreamError> for AcceptRawMessageStreamError
Source§fn from(error: StreamError) -> Self
fn from(error: StreamError) -> Self
Converts to this type from the input type.
Source§impl From<StreamError> for EncodeHeaderSectionError
impl From<StreamError> for EncodeHeaderSectionError
Source§fn from(error: StreamError) -> Self
fn from(error: StreamError) -> Self
Converts to this type from the input type.
Source§impl From<StreamError> for Error
impl From<StreamError> for Error
Source§fn from(value: StreamError) -> Self
fn from(value: StreamError) -> Self
Converts to this type from the input type.
Source§impl<StreamState, Read, Stop, ReadFuture, StopFuture, Item> GetStreamId<StreamError> for Unfold<StreamState, Read, Stop, ReadFuture, StopFuture, Item>
impl<StreamState, Read, Stop, ReadFuture, StopFuture, Item> GetStreamId<StreamError> for Unfold<StreamState, Read, Stop, ReadFuture, StopFuture, Item>
fn poll_stream_id( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<VarInt, StreamError>>
Source§impl<StreamState, Send, Flush, Close, Reset, SendFuture, FlushFuture, CloseFuture, ResetFuture, SinkError> GetStreamId<StreamError> for Unfold<StreamState, Send, Flush, Close, Reset, SendFuture, FlushFuture, CloseFuture, ResetFuture, SinkError>
impl<StreamState, Send, Flush, Close, Reset, SendFuture, FlushFuture, CloseFuture, ResetFuture, SinkError> GetStreamId<StreamError> for Unfold<StreamState, Send, Flush, Close, Reset, SendFuture, FlushFuture, CloseFuture, ResetFuture, SinkError>
fn poll_stream_id( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<VarInt, StreamError>>
Source§impl GetStreamId<StreamError> for MessageReader
impl GetStreamId<StreamError> for MessageReader
fn poll_stream_id( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<VarInt, StreamError>>
Source§impl GetStreamId<StreamError> for MessageWriter
impl GetStreamId<StreamError> for MessageWriter
fn poll_stream_id( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<VarInt, StreamError>>
Source§impl GetStreamId<StreamError> for dyn ReadStream
impl GetStreamId<StreamError> for dyn ReadStream
fn poll_stream_id( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<VarInt, StreamError>>
Source§impl GetStreamId<StreamError> for dyn WriteStream
impl GetStreamId<StreamError> for dyn WriteStream
fn poll_stream_id( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<VarInt, StreamError>>
Source§impl<__T0> IntoError<StreamError> for ResetSnafu<__T0>
impl<__T0> IntoError<StreamError> for ResetSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> StreamError
fn into_error(self, error: Self::Source) -> StreamError
Combine the information to produce the error
Source§impl<StreamState, Send, Flush, Close, Reset, SendFuture, FlushFuture, CloseFuture, ResetFuture, SinkError> ResetStream<StreamError> for Unfold<StreamState, Send, Flush, Close, Reset, SendFuture, FlushFuture, CloseFuture, ResetFuture, SinkError>where
Reset: FnMut(StreamState, VarInt) -> ResetFuture,
SendFuture: Future<Output = Either<(StreamState, Result<(), SinkError>), StreamState>>,
FlushFuture: Future<Output = Either<(StreamState, Result<(), SinkError>), StreamState>>,
CloseFuture: Future<Output = Either<(StreamState, Result<(), SinkError>), StreamState>>,
ResetFuture: Future<Output = (StreamState, Result<(), StreamError>)>,
SinkError: From<StreamError>,
impl<StreamState, Send, Flush, Close, Reset, SendFuture, FlushFuture, CloseFuture, ResetFuture, SinkError> ResetStream<StreamError> for Unfold<StreamState, Send, Flush, Close, Reset, SendFuture, FlushFuture, CloseFuture, ResetFuture, SinkError>where
Reset: FnMut(StreamState, VarInt) -> ResetFuture,
SendFuture: Future<Output = Either<(StreamState, Result<(), SinkError>), StreamState>>,
FlushFuture: Future<Output = Either<(StreamState, Result<(), SinkError>), StreamState>>,
CloseFuture: Future<Output = Either<(StreamState, Result<(), SinkError>), StreamState>>,
ResetFuture: Future<Output = (StreamState, Result<(), StreamError>)>,
SinkError: From<StreamError>,
fn poll_reset( self: Pin<&mut Self>, cx: &mut Context<'_>, code: VarInt, ) -> Poll<Result<(), StreamError>>
Source§impl ResetStream<StreamError> for MessageWriter
impl ResetStream<StreamError> for MessageWriter
fn poll_reset( self: Pin<&mut Self>, cx: &mut Context<'_>, code: VarInt, ) -> Poll<Result<(), StreamError>>
Source§impl ResetStream<StreamError> for dyn WriteStream
impl ResetStream<StreamError> for dyn WriteStream
fn poll_reset( self: Pin<&mut Self>, cx: &mut Context<'_>, code: VarInt, ) -> Poll<Result<(), StreamError>>
Source§impl<StreamState, Read, Stop, ReadFuture, StopFuture, Item> StopStream<StreamError> for Unfold<StreamState, Read, Stop, ReadFuture, StopFuture, Item>
impl<StreamState, Read, Stop, ReadFuture, StopFuture, Item> StopStream<StreamError> for Unfold<StreamState, Read, Stop, ReadFuture, StopFuture, Item>
Source§impl StopStream<StreamError> for MessageReader
impl StopStream<StreamError> for MessageReader
Source§impl StopStream<StreamError> for dyn ReadStream
impl StopStream<StreamError> for dyn ReadStream
Auto Trait Implementations§
impl Freeze for StreamError
impl RefUnwindSafe for StreamError
impl Send for StreamError
impl Sync for StreamError
impl Unpin for StreamError
impl UnsafeUnpin for StreamError
impl UnwindSafe for StreamError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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<S> DecodeExt for Swhere
S: ?Sized,
impl<S> DecodeExt for Swhere
S: ?Sized,
fn decode<T>(self) -> impl Future<Output = Result<T, T::Error>> + Sendwhere
Self: Sized,
T: DecodeFrom<Self>,
fn decode_one<'s, T>(&'s mut self) -> impl Future<Output = Result<T, T::Error>>where
T: DecodeFrom<&'s mut Self>,
fn into_decode_stream<T, Error>(self) -> impl Stream<Item = Result<T, Error>>where
Self: Sized,
for<'s> T: DecodeFrom<&'s mut Self, Error = Error>,
for<'s> &'s mut Self: AsyncBufRead,
Error: From<Error>,
Source§impl<S> EncodeExt for Swhere
S: ?Sized,
impl<S> EncodeExt for Swhere
S: ?Sized,
fn encode<T>(
self,
item: T,
) -> impl Future<Output = Result<T::Output, T::Error>> + Sendwhere
Self: Sized,
T: EncodeInto<Self>,
fn encode_one<'s, T>(
&'s mut self,
item: T,
) -> impl Future<Output = Result<T::Output, T::Error>>where
Self: Sized,
T: EncodeInto<&'s mut Self>,
fn into_encode_sink<T, Error>(self) -> impl Sink<T, Error = Error>where
Self: Sized,
for<'s> T: EncodeInto<&'s mut Self, Error = Error>,
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<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