[][src]Trait sunrise_libuser::example::IExample3Async

pub trait IExample3Async {
    fn function<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>
    ) -> FutureObj<'a, Result<IExample3SubsessionProxy, Error>>; fn dispatch<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        cmdid: u32,
        buf: &'a mut [u8]
    ) -> FutureObj<Result<(), Error>> { ... } }

Interfaces can also return other interfaces. We call an instance of an interface an object. This is often used to give each interface its own state. For instance, a filesystem may return an object of interface file when the user requests to open one.

Required methods

fn function<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>
) -> FutureObj<'a, Result<IExample3SubsessionProxy, Error>>

The type of an instance of an interface is object<InterfaceName>. You always need to use the fully qualified name, path and all.

It is also allowed to pass objects as arguments to function, though this is rarely used in practice.

Loading content...

Provided methods

fn dispatch<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    cmdid: u32,
    buf: &'a mut [u8]
) -> FutureObj<Result<(), Error>>

Handle an incoming IPC request.

Loading content...

Implementors

Loading content...