pub enum WatchStreamError {
IoError(Error),
UnexpectedResponse(ScalarValue),
StreamError(StreamError),
}Expand description
The errors that originates from the 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.
UnexpectedResponse(ScalarValue)
An error occured while decoding the response from the server. This can be caused by an incompatible server version.
StreamError(StreamError)
An error occured while handling a command.
Trait Implementations§
Source§impl Debug for WatchStreamError
impl Debug for WatchStreamError
Source§impl From<Error> for WatchStreamError
impl From<Error> for WatchStreamError
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.
Source§impl From<WatchStreamError> for ClientError
impl From<WatchStreamError> for ClientError
Source§fn from(error: WatchStreamError) -> Self
fn from(error: WatchStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for WatchStreamError
impl !UnwindSafe for WatchStreamError
impl Freeze for WatchStreamError
impl Send for WatchStreamError
impl Sync for WatchStreamError
impl Unpin for WatchStreamError
impl UnsafeUnpin for WatchStreamError
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