Ext

Trait Ext 

Source
pub trait Ext: Sealed + Sized {
    // Required methods
    fn ctrlc(self) -> Result<Self, Error>;
    fn ctrlc_with<F: Future + Send>(
        self,
        f: impl FnMut(Option<Disconnector>) -> F + Send + 'static,
    ) -> Result<Self, Error>;
}
Expand description

Provides extension methods for Client.

Required Methods§

Source

fn ctrlc(self) -> Result<Self, Error>

Extension method for ctrlc.

Source

fn ctrlc_with<F: Future + Send>( self, f: impl FnMut(Option<Disconnector>) -> F + Send + 'static, ) -> Result<Self, Error>

Extension method for ctrlc_with.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Ext for Client

Source§

fn ctrlc(self) -> Result<Self, Error>

Source§

fn ctrlc_with<F: Future + Send>( self, f: impl FnMut(Option<Disconnector>) -> F + Send + 'static, ) -> Result<Self, Error>

Implementors§