[][src]Trait sunrise_libuser::twili::IPipe

pub trait IPipe {
    fn read(
        &mut self,
        manager: WorkQueue<'static>,
        out_buf: &mut [u8]
    ) -> Result<u64, Error>;
fn write(
        &mut self,
        manager: WorkQueue<'static>,
        out_buf: &[u8]
    ) -> Result<(), Error>; fn dispatch<'a>(
        &'a mut self,
        manager: WorkQueue<'static>,
        cmdid: u32,
        buf: &'a mut [u8]
    ) -> FutureObj<Result<(), Error>> { ... } }

IPC Pipe Object

Required methods

fn read(
    &mut self,
    manager: WorkQueue<'static>,
    out_buf: &mut [u8]
) -> Result<u64, Error>

Reads data from the pipe.

May block if there isn't enough data to return.

fn write(
    &mut self,
    manager: WorkQueue<'static>,
    out_buf: &[u8]
) -> Result<(), Error>

Writes data to the other side of the pipe.

May block if the other side isn't reading fast enough.

Loading content...

Provided methods

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

Handle an incoming IPC request.

Loading content...

Implementors

Loading content...