Enum orchestra::OrchestraError
source · pub enum OrchestraError {
NotifyCancellation(Canceled),
QueueError(SendError),
TaskSpawn(&'static str),
Infallible(Infallible),
Context(String),
SubsystemStalled(&'static str),
FromOrigin {
origin: &'static str,
source: Box<dyn Error + Send + Sync + 'static>,
},
}
Expand description
An error type that describes faults that may happen
These are:
- Channels being closed
- Subsystems dying when they are not expected to
- Subsystems not dying when they are told to die
- etc.
Variants§
NotifyCancellation(Canceled)
QueueError(SendError)
TaskSpawn(&'static str)
Infallible(Infallible)
Context(String)
SubsystemStalled(&'static str)
FromOrigin
Fields
Per origin (or subsystem) annotations to wrap an error.
Trait Implementations§
source§impl Debug for OrchestraError
impl Debug for OrchestraError
source§impl Display for OrchestraError
impl Display for OrchestraError
source§impl Error for OrchestraError
impl Error for OrchestraError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<Canceled> for OrchestraError
impl From<Canceled> for OrchestraError
source§impl From<Infallible> for OrchestraError
impl From<Infallible> for OrchestraError
source§fn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for OrchestraError
impl Send for OrchestraError
impl Sync for OrchestraError
impl Unpin for OrchestraError
impl !UnwindSafe for OrchestraError
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