pub enum CommandStreamError {
ReadError(Error),
DecodeError(DecodeError),
HandshakeError(ScalarValue),
CommandError(String),
}Expand description
The errors that originates from the command stream.
Variants§
ReadError(Error)
An error occured while reading from the stream. This is 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.
HandshakeError(ScalarValue)
An unexpected value was received from the server during handshake. This can be caused by incompatible server version.
CommandError(String)
An error occured in the command stream, this can be caused by an unexpected response from the server.
Trait Implementations§
Source§impl Debug for CommandStreamError
impl Debug for CommandStreamError
Source§impl From<CommandStreamError> for ClientError
impl From<CommandStreamError> for ClientError
Source§fn from(error: CommandStreamError) -> Self
fn from(error: CommandStreamError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for CommandStreamError
impl From<DecodeError> for CommandStreamError
Source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CommandStreamError
impl !UnwindSafe for CommandStreamError
impl Freeze for CommandStreamError
impl Send for CommandStreamError
impl Sync for CommandStreamError
impl Unpin for CommandStreamError
impl UnsafeUnpin for CommandStreamError
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