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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.