Enum rotor::SpawnError [] [src]

pub enum SpawnError<S: Sized> {
    NoSlabSpace(S),
    UserError(Box<Error>),
}

Error when spawning a new state machine

Variants

NoSlabSpace

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

Error returned from Machine::create handler

Methods

impl<S> SpawnError<S>

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

fn map<T: Sized, F: FnOnce(S) -> T>(self, fun: F) -> SpawnError<T>

Trait Implementations

impl<S> Display for SpawnError<S>

fn fmt(&self, fmt: &mut Formatter) -> Result

impl<S: Error> Error for SpawnError<S>

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

impl<S> From<Box<Error>> for SpawnError<S>

fn from(x: Box<Error>) -> SpawnError<S>

impl<S> Debug for SpawnError<S>

fn fmt(&self, fmt: &mut Formatter) -> Result