Trait RequestDispatch

Source
pub trait RequestDispatch<Ctx> {
    type Error;
    type ReleaseFut<'a>: Future<Output = Result<(), Self::Error>> + 'a
       where Ctx: 'a;

    // Required method
    fn release<'a>(ctx: &'a mut Ctx, object_id: u32) -> Self::ReleaseFut<'a>;
}

Required Associated Types§

Source

type Error

Source

type ReleaseFut<'a>: Future<Output = Result<(), Self::Error>> + 'a where Ctx: 'a

Type of future returned by release

Required Methods§

Source

fn release<'a>(ctx: &'a mut Ctx, object_id: u32) -> Self::ReleaseFut<'a>

release the output object

Using this request a client can tell the server that it is not going to use the output object anymore.

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.

Implementors§