pub enum StreamError {
IoError(Error),
DecodeError(DecodeError),
CommandError(CommandError),
}Expand description
The errors that originates from base functionality of a stream, either command stream or watch stream.
Variants§
IoError(Error)
An error occured with the IO, this could be caused by the underlying IO to the server. Connection to server could be lost, or the server could have closed the connection.
DecodeError(DecodeError)
An error occured while decoding the response from the server. This can be caused by an incompatible server version.
CommandError(CommandError)
An error occured while handling a command. This can be caused by an unexpected response from the server.
Trait Implementations§
Source§impl Debug for StreamError
impl Debug for StreamError
Source§impl From<CommandError> for StreamError
impl From<CommandError> for StreamError
Source§fn from(error: CommandError) -> Self
fn from(error: CommandError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for StreamError
impl From<DecodeError> for StreamError
Source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for StreamError
impl From<Error> for StreamError
Source§impl From<StreamError> for ClientError
impl From<StreamError> for ClientError
Source§fn from(error: StreamError) -> Self
fn from(error: StreamError) -> Self
Converts to this type from the input type.
Source§impl From<StreamError> for WatchStreamError
impl From<StreamError> for WatchStreamError
Source§fn from(error: StreamError) -> Self
fn from(error: StreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StreamError
impl !UnwindSafe for StreamError
impl Freeze for StreamError
impl Send for StreamError
impl Sync for StreamError
impl Unpin for StreamError
impl UnsafeUnpin for StreamError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request