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.
Trait Implementations§
source§impl<E: Debug> Debug for OrchestratorError<E>
impl<E: Debug> Debug for OrchestratorError<E>
source§impl<E> From<InterceptorError> for OrchestratorError<E>where
E: Debug + Error + 'static,
impl<E> From<InterceptorError> for OrchestratorError<E>where E: Debug + Error + 'static,
source§fn from(err: InterceptorError) -> Self
fn from(err: InterceptorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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