pub enum SpawnError<S: Sized> {
NoSlabSpace(S),
UserError(Box<dyn Error>),
}
Expand description
Error when spawning a new state machine
Variants§
NoSlabSpace(S)
The State Machine Slab capacity is reached
The capacity is configured in the rotor::Config
and is used
for creating rotor::Loop
.
The item in this struct is the Seed that send to create a machine
UserError(Box<dyn Error>)
Error returned from Machine::create
handler
Implementations§
Source§impl<S> SpawnError<S>
impl<S> SpawnError<S>
Trait Implementations§
Source§impl<S> Debug for SpawnError<S>
impl<S> Debug for SpawnError<S>
Source§impl<S> Display for SpawnError<S>
impl<S> Display for SpawnError<S>
Source§impl<S: Error> Error for SpawnError<S>
impl<S: Error> Error for SpawnError<S>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Auto Trait Implementations§
impl<S> Freeze for SpawnError<S>where
S: Freeze,
impl<S> !RefUnwindSafe for SpawnError<S>
impl<S> !Send for SpawnError<S>
impl<S> !Sync for SpawnError<S>
impl<S> Unpin for SpawnError<S>where
S: Unpin,
impl<S> !UnwindSafe for SpawnError<S>
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