Enum agner_actors::Exit
source · [−]pub enum Exit {
Standard(ExitStandard),
Backend(BackendFailure),
Custom(ArcError),
}Variants
Standard(ExitStandard)
Backend(BackendFailure)
Custom(ArcError)
Implementations
sourceimpl Exit
impl Exit
pub fn is_normal(&self) -> bool
pub fn is_kill(&self) -> bool
pub fn is_linked(&self) -> bool
pub fn is_no_actor(&self) -> bool
pub fn is_shutdown(&self) -> bool
pub fn is_custom(&self) -> bool
pub fn normal() -> Self
pub fn kill() -> Self
pub fn linked(who: ActorID, reason: impl Into<Box<Self>>) -> Self
pub fn no_actor() -> Self
pub fn shutdown() -> Self
pub fn shutdown_with_source(source: ArcError) -> Self
pub fn custom<E: Error + Send + Sync + 'static>(e: E) -> Exit
Trait Implementations
sourceimpl Error for Exit
impl Error for Exit
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<BackendFailure> for Exit
impl From<BackendFailure> for Exit
sourcefn from(e: BackendFailure) -> Self
fn from(e: BackendFailure) -> Self
Converts to this type from the input type.
sourceimpl From<ExitStandard> for Exit
impl From<ExitStandard> for Exit
sourcefn from(e: ExitStandard) -> Self
fn from(e: ExitStandard) -> Self
Converts to this type from the input type.
sourceimpl IntoExitReason for Exit
impl IntoExitReason for Exit
fn into_exit_reason(self) -> Exit
Auto Trait Implementations
impl !RefUnwindSafe for Exit
impl Send for Exit
impl Sync for Exit
impl Unpin for Exit
impl !UnwindSafe for Exit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more