Enum rotor::SpawnError [] [src]

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

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<Error>)

Error returned from Machine::create handler

Methods

impl<S> SpawnError<S>
[src]

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>
[src]

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

Formats the value using the given formatter.

impl<S: Error> Error for SpawnError<S>
[src]

fn description(&self) -> &str

A short description of the error. Read more

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

The lower-level cause of this error, if any. Read more

impl<S> From<Box<Error>> for SpawnError<S>
[src]

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

Performs the conversion.

impl<S> Debug for SpawnError<S>
[src]

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

Formats the value using the given formatter.