pub enum ActorError {
User(String),
Cancelled,
Panic(String),
Spawn(SpawnError),
}Expand description
Errors returned from user-defined actor logic.
Variants§
User(String)
A custom error message from the actor.
Cancelled
The actor was cancelled.
Panic(String)
The actor panicked during execution.
Spawn(SpawnError)
A spawn error occurred.
Implementations§
Trait Implementations§
Source§impl Clone for ActorError
impl Clone for ActorError
Source§fn clone(&self) -> ActorError
fn clone(&self) -> ActorError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActorError
impl Debug for ActorError
Source§impl Display for ActorError
impl Display for ActorError
Source§impl Error for ActorError
impl Error for ActorError
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 ActorError
impl From<SpawnError> for ActorError
Source§fn from(source: SpawnError) -> Self
fn from(source: SpawnError) -> Self
Converts to this type from the input type.
Source§impl From<StreamError> for ActorError
impl From<StreamError> for ActorError
Source§fn from(value: StreamError) -> Self
fn from(value: StreamError) -> Self
Converts to this type from the input type.
Source§impl From<SupervisionError> for ActorError
impl From<SupervisionError> for ActorError
Source§fn from(value: SupervisionError) -> Self
fn from(value: SupervisionError) -> Self
Converts to this type from the input type.
Source§impl From<TimerError> for ActorError
impl From<TimerError> for ActorError
Source§fn from(value: TimerError) -> Self
fn from(value: TimerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ActorError
impl RefUnwindSafe for ActorError
impl Send for ActorError
impl Sync for ActorError
impl Unpin for ActorError
impl UnsafeUnpin for ActorError
impl UnwindSafe for ActorError
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