pub enum StateServerError {
TonicError {
context: String,
source: Status,
},
TransportError {
source: Error,
},
SerializeError {
source: Error,
},
MessageConversion {
context: String,
source: MessageConversionError,
},
StateConversion {
context: String,
source: StateConversionError,
},
}Variants§
Trait Implementations§
source§impl Debug for StateServerError
impl Debug for StateServerError
source§impl Display for StateServerError
impl Display for StateServerError
source§impl Error for StateServerErrorwhere
Self: Debug + Display,
impl Error for StateServerErrorwhere Self: Debug + Display,
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl ErrorCompat for StateServerError
impl ErrorCompat for StateServerError
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<__T0> IntoError<StateServerError> for MessageConversionSnafu<__T0>where
StateServerError: Error + ErrorCompat,
__T0: Into<String>,
impl<__T0> IntoError<StateServerError> for MessageConversionSnafu<__T0>where StateServerError: Error + ErrorCompat, __T0: Into<String>,
§type Source = MessageConversionError
type Source = MessageConversionError
The underlying error
source§fn into_error(self, error: Self::Source) -> StateServerError
fn into_error(self, error: Self::Source) -> StateServerError
Combine the information to produce the error
source§impl IntoError<StateServerError> for SerializeSnafuwhere
StateServerError: Error + ErrorCompat,
impl IntoError<StateServerError> for SerializeSnafuwhere StateServerError: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> StateServerError
fn into_error(self, error: Self::Source) -> StateServerError
Combine the information to produce the error
source§impl<__T0> IntoError<StateServerError> for StateConversionSnafu<__T0>where
StateServerError: Error + ErrorCompat,
__T0: Into<String>,
impl<__T0> IntoError<StateServerError> for StateConversionSnafu<__T0>where StateServerError: Error + ErrorCompat, __T0: Into<String>,
§type Source = StateConversionError
type Source = StateConversionError
The underlying error
source§fn into_error(self, error: Self::Source) -> StateServerError
fn into_error(self, error: Self::Source) -> StateServerError
Combine the information to produce the error
source§impl<__T0> IntoError<StateServerError> for TonicSnafu<__T0>where
StateServerError: Error + ErrorCompat,
__T0: Into<String>,
impl<__T0> IntoError<StateServerError> for TonicSnafu<__T0>where StateServerError: Error + ErrorCompat, __T0: Into<String>,
source§fn into_error(self, error: Self::Source) -> StateServerError
fn into_error(self, error: Self::Source) -> StateServerError
Combine the information to produce the error
source§impl IntoError<StateServerError> for TransportSnafuwhere
StateServerError: Error + ErrorCompat,
impl IntoError<StateServerError> for TransportSnafuwhere StateServerError: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> StateServerError
fn into_error(self, error: Self::Source) -> StateServerError
Combine the information to produce the error
Auto Trait Implementations§
impl !RefUnwindSafe for StateServerError
impl Send for StateServerError
impl Sync for StateServerError
impl Unpin for StateServerError
impl !UnwindSafe for StateServerError
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<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> 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> 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