Skip to main content

Backend

Trait Backend 

Source
pub trait Backend<C: Context>: Sized {
    // Required method
    fn try_cancel<const FAMILY: u8>(
        &mut self,
        key: C::Key,
        pending: bool,
        slot: Option<&<C::Inputs as Context>::Target>,
    ) -> Result<Cancelled, Error<<<C as Context>::Native as Native>::Error<(<C as Context>::Key, Cause<<C as Context>::Failure>)>>>;
}

Required Methods§

Source

fn try_cancel<const FAMILY: u8>( &mut self, key: C::Key, pending: bool, slot: Option<&<C::Inputs as Context>::Target>, ) -> Result<Cancelled, Error<<<C as Context>::Native as Native>::Error<(<C as Context>::Key, Cause<<C as Context>::Failure>)>>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§