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§

source

type Error

source

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

Type of future returned by create_surface

source

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

Type of future returned by create_region

Required Methods§

source

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.

source

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.

Implementors§