[−][src]Trait sunrise_libuser::example::IExample3
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(
&mut self,
manager: WorkQueue<'static>
) -> Result<IExample3SubsessionProxy, Error>
&mut self,
manager: WorkQueue<'static>
) -> 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.
Provided methods
fn dispatch<'a>(
&'a mut self,
manager: WorkQueue<'static>,
cmdid: u32,
buf: &'a mut [u8]
) -> FutureObj<Result<(), Error>>
&'a mut self,
manager: WorkQueue<'static>,
cmdid: u32,
buf: &'a mut [u8]
) -> FutureObj<Result<(), Error>>
Handle an incoming IPC request.