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§
type Error
sourcetype CreateDataSourceFut<'a>: Future<Output = Result<(), Self::Error>> + 'a
where
Ctx: 'a
type CreateDataSourceFut<'a>: Future<Output = Result<(), Self::Error>> + 'a where Ctx: 'a
Type of future returned by create_data_source
sourcetype GetDataDeviceFut<'a>: Future<Output = Result<(), Self::Error>> + 'a
where
Ctx: 'a
type GetDataDeviceFut<'a>: Future<Output = Result<(), Self::Error>> + 'a where Ctx: 'a
Type of future returned by get_data_device
Required Methods§
sourcefn create_data_source<'a>(
ctx: &'a mut Ctx,
object_id: u32,
id: NewId
) -> Self::CreateDataSourceFut<'a>
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.
sourcefn get_data_device<'a>(
ctx: &'a mut Ctx,
object_id: u32,
id: NewId,
seat: Object
) -> Self::GetDataDeviceFut<'a>
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.