pub trait RequestDispatch<Ctx> {
type Error;
type CreateSurfaceFut<'a>: Future<Output = Result<(), Self::Error>> + 'a
where Ctx: 'a;
type CreateRegionFut<'a>: Future<Output = Result<(), Self::Error>> + 'a
where Ctx: 'a;
// Required methods
fn create_surface<'a>(
ctx: &'a mut Ctx,
object_id: u32,
id: NewId
) -> Self::CreateSurfaceFut<'a>;
fn create_region<'a>(
ctx: &'a mut Ctx,
object_id: u32,
id: NewId
) -> Self::CreateRegionFut<'a>;
}
Required Associated Types§
type Error
sourcetype CreateSurfaceFut<'a>: Future<Output = Result<(), Self::Error>> + 'a
where
Ctx: 'a
type CreateSurfaceFut<'a>: Future<Output = Result<(), Self::Error>> + 'a where Ctx: 'a
Type of future returned by create_surface
sourcetype CreateRegionFut<'a>: Future<Output = Result<(), Self::Error>> + 'a
where
Ctx: 'a
type CreateRegionFut<'a>: Future<Output = Result<(), Self::Error>> + 'a where Ctx: 'a
Type of future returned by create_region
Required Methods§
sourcefn create_surface<'a>(
ctx: &'a mut Ctx,
object_id: u32,
id: NewId
) -> Self::CreateSurfaceFut<'a>
fn create_surface<'a>( ctx: &'a mut Ctx, object_id: u32, id: NewId ) -> Self::CreateSurfaceFut<'a>
create new surface
Ask the compositor to create a new surface.
sourcefn create_region<'a>(
ctx: &'a mut Ctx,
object_id: u32,
id: NewId
) -> Self::CreateRegionFut<'a>
fn create_region<'a>( ctx: &'a mut Ctx, object_id: u32, id: NewId ) -> Self::CreateRegionFut<'a>
create new region
Ask the compositor to create a new region.