StreamIpcOps

Trait StreamIpcOps 

Source
pub trait StreamIpcOps: StreamOps {
    // Required methods
    fn is_connected(&self) -> bool;
    fn peer_count(&self) -> usize;
    fn description(&self) -> String;
}
Expand description

Common trait for stream-based IPC objects

This trait provides common functionality for stream-based IPC mechanisms that operate as continuous data flows, such as pipes and sockets. It extends StreamOps with stream-specific IPC state management.

Required Methods§

Source

fn is_connected(&self) -> bool

Check if the stream IPC object is still connected/valid

Source

fn peer_count(&self) -> usize

Get the number of active peers (readers/writers/endpoints)

Source

fn description(&self) -> String

Get a human-readable description of this IPC object

Implementors§