Struct tokio::prelude::future::ExecuteError
source · pub struct ExecuteError<F> { /* private fields */ }
Expand description
Errors returned from the Spawn::spawn
function.
Implementations§
source§impl<F> ExecuteError<F>
impl<F> ExecuteError<F>
sourcepub fn new(kind: ExecuteErrorKind, future: F) -> ExecuteError<F>
pub fn new(kind: ExecuteErrorKind, future: F) -> ExecuteError<F>
Create a new ExecuteError
sourcepub fn kind(&self) -> ExecuteErrorKind
pub fn kind(&self) -> ExecuteErrorKind
Returns the associated reason for the error
sourcepub fn into_future(self) -> F
pub fn into_future(self) -> F
Consumes self and returns the original future that was spawned.