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§
Sourcefn ctrlc_with<F: Future + Send>(
self,
f: impl FnMut(Option<Disconnector>) -> F + Send + 'static,
) -> Result<Self, Error>
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.