[][src]Trait trawler::AsyncShutdown

pub trait AsyncShutdown {
    type Future: Future<Output = ()>;
    fn shutdown(self) -> Self::Future;
}

Asynchronous client shutdown.

The tokio runtime will not be shut down until the returned future resolves.

Associated Types

type Future: Future<Output = ()>

A future that will resolve once client shutdown has finished.

Loading content...

Required methods

fn shutdown(self) -> Self::Future

Start the shutdown process.

Loading content...

Implementors

Loading content...