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

    // Required methods
    fn get_pointer<'a>(
        ctx: &'a mut Ctx,
        object_id: u32,
        id: NewId
    ) -> Self::GetPointerFut<'a>;
    fn get_keyboard<'a>(
        ctx: &'a mut Ctx,
        object_id: u32,
        id: NewId
    ) -> Self::GetKeyboardFut<'a>;
    fn get_touch<'a>(
        ctx: &'a mut Ctx,
        object_id: u32,
        id: NewId
    ) -> Self::GetTouchFut<'a>;
    fn release<'a>(ctx: &'a mut Ctx, object_id: u32) -> Self::ReleaseFut<'a>;
}

Required Associated Types§

source

type Error

source

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

Type of future returned by get_pointer

source

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

Type of future returned by get_keyboard

source

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

Type of future returned by get_touch

source

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

Type of future returned by release

Required Methods§

source

fn get_pointer<'a>( ctx: &'a mut Ctx, object_id: u32, id: NewId ) -> Self::GetPointerFut<'a>

return pointer object

The ID provided will be initialized to the wl_pointer interface for this seat.

This request only takes effect if the seat has the pointer capability, or has had the pointer capability in the past. It is a protocol violation to issue this request on a seat that has never had the pointer capability. The missing_capability error will be sent in this case.

source

fn get_keyboard<'a>( ctx: &'a mut Ctx, object_id: u32, id: NewId ) -> Self::GetKeyboardFut<'a>

return keyboard object

The ID provided will be initialized to the wl_keyboard interface for this seat.

This request only takes effect if the seat has the keyboard capability, or has had the keyboard capability in the past. It is a protocol violation to issue this request on a seat that has never had the keyboard capability. The missing_capability error will be sent in this case.

source

fn get_touch<'a>( ctx: &'a mut Ctx, object_id: u32, id: NewId ) -> Self::GetTouchFut<'a>

return touch object

The ID provided will be initialized to the wl_touch interface for this seat.

This request only takes effect if the seat has the touch capability, or has had the touch capability in the past. It is a protocol violation to issue this request on a seat that has never had the touch capability. The missing_capability error will be sent in this case.

source

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

release the seat object

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

Implementors§