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§
Sourcefn has_readers(&self) -> bool
fn has_readers(&self) -> bool
Check if there are readers on the other end
Sourcefn has_writers(&self) -> bool
fn has_writers(&self) -> bool
Check if there are writers on the other end
Sourcefn buffer_size(&self) -> usize
fn buffer_size(&self) -> usize
Get the buffer size of the pipe
Sourcefn available_bytes(&self) -> usize
fn available_bytes(&self) -> usize
Get the number of bytes currently in the pipe buffer
Sourcefn is_readable(&self) -> bool
fn is_readable(&self) -> bool
Check if this end of the pipe is readable
Sourcefn is_writable(&self) -> bool
fn is_writable(&self) -> bool
Check if this end of the pipe is writable