pub enum ActionError<E: StdError + Send + 'static> {
Action(E),
Error(Box<Error>),
}
Expand description
Error wrapper for operations that might fail due to external actions
Variants§
Implementations§
Source§impl<E: StdError + Send> ActionError<E>
impl<E: StdError + Send> ActionError<E>
Sourcepub fn blame(&self) -> ActionErrorBlame
pub fn blame(&self) -> ActionErrorBlame
Determines the primary cause category of the error
Trait Implementations§
Source§impl<E: StdError + Send> Error for ActionError<E>
impl<E: StdError + Send> Error for ActionError<E>
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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()
Auto Trait Implementations§
impl<E> Freeze for ActionError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for ActionError<E>
impl<E> Send for ActionError<E>
impl<E> Sync for ActionError<E>where
E: Sync,
impl<E> Unpin for ActionError<E>where
E: Unpin,
impl<E> !UnwindSafe for ActionError<E>
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
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