[−][src]Trait sunrise_libuser::twili::ITwiliManagerService
The Twili Manager is responsible for registering a process' pipes. The PM should connect to this service and register pipes before starting a process.
Required methods
fn register_pipes(
&mut self,
manager: WorkQueue<'static>,
pid: u64,
stdin: IPipeProxy,
stdout: IPipeProxy,
stderr: IPipeProxy
) -> Result<(), Error>
&mut self,
manager: WorkQueue<'static>,
pid: u64,
stdin: IPipeProxy,
stdout: IPipeProxy,
stderr: IPipeProxy
) -> Result<(), Error>
Registers the pipe of a remote process.
fn create_pipe(
&mut self,
manager: WorkQueue<'static>
) -> Result<(IPipeProxy, IPipeProxy), Error>
&mut self,
manager: WorkQueue<'static>
) -> Result<(IPipeProxy, IPipeProxy), Error>
Creates a pipe whose write gets buffered and returned to the read side.
Tryting to write to the read side or read from the write side will return an error.
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.