[][src]Trait tokio_ctrlc_error::AsyncCtrlc

pub trait AsyncCtrlc<F: Future> {
    fn ctrlc_as_error(self) -> CtrlcAsError<F>;
}

Required methods

fn ctrlc_as_error(self) -> CtrlcAsError<F>

Intercept ctrl+c during execution and return an error in such case.

Loading content...

Implementors

impl<F: Future> AsyncCtrlc<F> for F where
    F::Error: From<KeyboardInterrupt> + From<IoError>, 
[src]

Loading content...