[][src]Trait sunrise_libuser::example::IExample1Async

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

Here's a simple example of an interface. This is a service that can be connected to by connecting to "hello:1" with sm's get_service function.

Lines starting with # are documentation comments: They will end up in the documentation for the structs and traits generated from this interface.

This interface has no command - the only useful thing you can do with it is close it.

Interface names dictate where the generated structs and traits will be generated. They must follow the scheme crate_name::module::path::IFaceName.

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...