pub enum NurseErr {
Spawn,
Closed,
}
Expand description
The error type for errors happening in async_nursery.
Variants§
Spawn
The executor failed to spawn the provided task. This means the executor returned an error.
Closed
The nursery is closed and no longer accepts new tasks.
Trait Implementations§
Source§impl Error for NurseErr
impl Error for NurseErr
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + '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 From<SpawnError> for NurseErr
impl From<SpawnError> for NurseErr
Source§fn from(_: SpawnError) -> NurseErr
fn from(_: SpawnError) -> NurseErr
Converts to this type from the input type.
Source§impl<T> From<TrySendError<T>> for NurseErr
impl<T> From<TrySendError<T>> for NurseErr
Source§fn from(_: TrySendError<T>) -> NurseErr
fn from(_: TrySendError<T>) -> NurseErr
Converts to this type from the input type.
impl Copy for NurseErr
impl Eq for NurseErr
impl StructuralPartialEq for NurseErr
Auto Trait Implementations§
impl Freeze for NurseErr
impl RefUnwindSafe for NurseErr
impl Send for NurseErr
impl Sync for NurseErr
impl Unpin for NurseErr
impl UnwindSafe for NurseErr
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