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

    // Required methods
    fn get_tablet_seat<'a>(
        ctx: &'a mut Ctx,
        object_id: u32,
        tablet_seat: NewId,
        seat: Object
    ) -> Self::GetTabletSeatFut<'a>;
    fn destroy<'a>(ctx: &'a mut Ctx, object_id: u32) -> Self::DestroyFut<'a>;
}

Required Associated Types§

source

type Error

source

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

Type of future returned by get_tablet_seat

source

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

Type of future returned by destroy

Required Methods§

source

fn get_tablet_seat<'a>( ctx: &'a mut Ctx, object_id: u32, tablet_seat: NewId, seat: Object ) -> Self::GetTabletSeatFut<'a>

get the tablet seat

Get the wp_tablet_seat object for the given seat. This object provides access to all graphics tablets in this seat.

source

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

release the memory for the tablet manager object

Destroy the wp_tablet_manager object. Objects created from this object are unaffected and should be destroyed separately.

Implementors§