pub struct OrchestratorError<E> { /* private fields */ }
Expand description
Errors that can occur while running the orchestrator.
Implementations§
source§impl<E> OrchestratorError<E>
impl<E> OrchestratorError<E>
sourcepub fn other(source: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn other(source: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Create a new OrchestratorError
from the given source.
sourcepub fn is_operation_error(&self) -> bool
pub fn is_operation_error(&self) -> bool
True if the underlying error is an operation error.
sourcepub fn as_operation_error(&self) -> Option<&E>
pub fn as_operation_error(&self) -> Option<&E>
Return this orchestrator error as an operation error if possible.
sourcepub fn interceptor(source: InterceptorError) -> Self
pub fn interceptor(source: InterceptorError) -> Self
Create an interceptor error with the given source.
sourcepub fn is_interceptor_error(&self) -> bool
pub fn is_interceptor_error(&self) -> bool
True if the underlying error is an interceptor error.
sourcepub fn is_timeout_error(&self) -> bool
pub fn is_timeout_error(&self) -> bool
True if the underlying error is a timeout error.
sourcepub fn is_response_error(&self) -> bool
pub fn is_response_error(&self) -> bool
True if the underlying error is a response error.
sourcepub fn connector(source: ConnectorError) -> Self
pub fn connector(source: ConnectorError) -> Self
Create a connector error with the given source.
sourcepub fn is_connector_error(&self) -> bool
pub fn is_connector_error(&self) -> bool
True if the underlying error is a ConnectorError
.
sourcepub fn as_connector_error(&self) -> Option<&ConnectorError>
pub fn as_connector_error(&self) -> Option<&ConnectorError>
Return this orchestrator error as a connector error if possible.
sourcepub fn map_operation_error<E2>(
self,
map: impl FnOnce(E) -> E2,
) -> OrchestratorError<E2>
pub fn map_operation_error<E2>( self, map: impl FnOnce(E) -> E2, ) -> OrchestratorError<E2>
Maps the error type in ErrorKind::Operation
Trait Implementations§
source§impl<E: Debug> Debug for OrchestratorError<E>
impl<E: Debug> Debug for OrchestratorError<E>
source§impl<E> Display for OrchestratorError<E>
impl<E> Display for OrchestratorError<E>
source§impl<E> Error for OrchestratorError<E>where
E: StdError + 'static,
impl<E> Error for OrchestratorError<E>where
E: StdError + 'static,
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()
source§impl<E> From<InterceptorError> for OrchestratorError<E>
impl<E> From<InterceptorError> for OrchestratorError<E>
source§fn from(err: InterceptorError) -> Self
fn from(err: InterceptorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for OrchestratorError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for OrchestratorError<E>
impl<E> Send for OrchestratorError<E>where
E: Send,
impl<E> Sync for OrchestratorError<E>where
E: Sync,
impl<E> Unpin for OrchestratorError<E>where
E: Unpin,
impl<E> !UnwindSafe for OrchestratorError<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>
Creates a shared type from an unshared type.