pub struct OrchestratorError<E> { /* private fields */ }
Available on crate feature
client
only.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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.