Struct futures::future::ExecuteError
[−]
[src]
pub struct ExecuteError<F> { /* fields omitted */ }
Errors returned from the Spawn::spawn
function.
Methods
impl<F> ExecuteError<F>
[src]
impl<F> ExecuteError<F>
pub fn new(kind: ExecuteErrorKind, future: F) -> ExecuteError<F>
[src]
pub fn new(kind: ExecuteErrorKind, future: F) -> ExecuteError<F>
Create a new ExecuteError
pub fn kind(&self) -> ExecuteErrorKind
[src]
pub fn kind(&self) -> ExecuteErrorKind
Returns the associated reason for the error
pub fn into_future(self) -> F
[src]
pub fn into_future(self) -> F
Consumes self and returns the original future that was spawned.
Trait Implementations
impl<F> Debug for ExecuteError<F>
[src]
impl<F> Debug for ExecuteError<F>
Auto Trait Implementations
impl<F> Send for ExecuteError<F> where
F: Send,
impl<F> Send for ExecuteError<F> where
F: Send,
impl<F> Sync for ExecuteError<F> where
F: Sync,
impl<F> Sync for ExecuteError<F> where
F: Sync,