pub enum SupervisorHandleError {
Closed,
TaskAlreadyExists(String),
TaskNotFound(String),
}Expand description
Why a SupervisorHandle request was refused.
Variants§
Closed
The supervisor has exited or is shutting down.
TaskAlreadyExists(String)
add_task was called with a name that is already registered.
TaskNotFound(String)
No task is registered under this name.
Trait Implementations§
Source§impl Clone for SupervisorHandleError
impl Clone for SupervisorHandleError
Source§impl Debug for SupervisorHandleError
impl Debug for SupervisorHandleError
Source§impl Display for SupervisorHandleError
impl Display for SupervisorHandleError
impl Eq for SupervisorHandleError
Source§impl Error for SupervisorHandleError
impl Error for SupervisorHandleError
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 PartialEq for SupervisorHandleError
impl PartialEq for SupervisorHandleError
impl StructuralPartialEq for SupervisorHandleError
Auto Trait Implementations§
impl Freeze for SupervisorHandleError
impl RefUnwindSafe for SupervisorHandleError
impl Send for SupervisorHandleError
impl Sync for SupervisorHandleError
impl Unpin for SupervisorHandleError
impl UnsafeUnpin for SupervisorHandleError
impl UnwindSafe for SupervisorHandleError
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