Trait PipeObject

Source
pub trait PipeObject: IpcObject + CloneOps {
    // Required methods
    fn has_readers(&self) -> bool;
    fn has_writers(&self) -> bool;
    fn buffer_size(&self) -> usize;
    fn available_bytes(&self) -> usize;
    fn is_readable(&self) -> bool;
    fn is_writable(&self) -> bool;
}
Expand description

Pipe-specific operations

This trait extends IpcObject with pipe-specific functionality.

Required Methods§

Source

fn has_readers(&self) -> bool

Check if there are readers on the other end

Source

fn has_writers(&self) -> bool

Check if there are writers on the other end

Source

fn buffer_size(&self) -> usize

Get the buffer size of the pipe

Source

fn available_bytes(&self) -> usize

Get the number of bytes currently in the pipe buffer

Source

fn is_readable(&self) -> bool

Check if this end of the pipe is readable

Source

fn is_writable(&self) -> bool

Check if this end of the pipe is writable

Implementors§