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

    // Required method
    fn bind<'a>(
        ctx: &'a mut Ctx,
        object_id: u32,
        name: u32,
        interface: Str<'a>,
        version: u32,
        id: NewId
    ) -> Self::BindFut<'a>;
}

Required Associated Types§

source

type Error

source

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

Type of future returned by bind

Required Methods§

source

fn bind<'a>( ctx: &'a mut Ctx, object_id: u32, name: u32, interface: Str<'a>, version: u32, id: NewId ) -> Self::BindFut<'a>

bind an object to the display

Binds a new, client-created object to the server using the specified name as the identifier.

Implementors§