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

    // Required methods
    fn create_data_source<'a>(
        ctx: &'a mut Ctx,
        object_id: u32,
        id: NewId
    ) -> Self::CreateDataSourceFut<'a>;
    fn get_data_device<'a>(
        ctx: &'a mut Ctx,
        object_id: u32,
        id: NewId,
        seat: Object
    ) -> Self::GetDataDeviceFut<'a>;
}

Required Associated Types§

source

type Error

source

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

Type of future returned by create_data_source

source

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

Type of future returned by get_data_device

Required Methods§

source

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

create a new data source

Create a new data source.

source

fn get_data_device<'a>( ctx: &'a mut Ctx, object_id: u32, id: NewId, seat: Object ) -> Self::GetDataDeviceFut<'a>

create a new data device

Create a new data device for a given seat.

Implementors§