Enum ibc_relayer::util::task::TaskError
source · pub enum TaskError<E> {
Ignore(E),
Fatal(E),
}Expand description
A wrapper around the error type returned by a background task step function to indicate whether the background task should be terminated because of the error.
Variants§
Ignore(E)
Inform the background task runner that an ignorable error has occured, and the background task runner should log the error and then continue execution.
Fatal(E)
Inform the background task runner that a fatal error has occured, and the background task runner should log the error and then abort execution.
Auto Trait Implementations§
impl<E> RefUnwindSafe for TaskError<E>where E: RefUnwindSafe,
impl<E> Send for TaskError<E>where E: Send,
impl<E> Sync for TaskError<E>where E: Sync,
impl<E> Unpin for TaskError<E>where E: Unpin,
impl<E> UnwindSafe for TaskError<E>where E: UnwindSafe,
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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<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