Struct SpawnError

pub struct SpawnError { /* private fields */ }

An error that occurred during spawning.

Implementations

impl SpawnError

fn shutdown() -> Self

Spawning failed because the executor has been shut down.

fn is_shutdown(&self) -> bool

Check whether spawning failed to the executor being shut down.

Trait Implementations

impl Debug for SpawnError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for SpawnError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Error for SpawnError

Auto Trait Implementations

impl Freeze for SpawnError

impl RefUnwindSafe for SpawnError

impl Send for SpawnError

impl Sync for SpawnError

impl Unpin for SpawnError

impl UnsafeUnpin for SpawnError

impl UnwindSafe for SpawnError

Blanket Implementations

impl<T> Any for SpawnError where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for SpawnError where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for SpawnError where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for SpawnError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToString for SpawnError where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T, U> Into<U> for SpawnError where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for SpawnError where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for SpawnError where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>