pub trait IpcObject: StreamOps {
// Required methods
fn is_connected(&self) -> bool;
fn peer_count(&self) -> usize;
fn description(&self) -> String;
}
Expand description
Common trait for all IPC objects
This trait provides common functionality that all IPC mechanisms share, such as connection state management and peer information.
Required Methods§
Sourcefn is_connected(&self) -> bool
fn is_connected(&self) -> bool
Check if the IPC object is still connected/valid
Sourcefn peer_count(&self) -> usize
fn peer_count(&self) -> usize
Get the number of active peers (readers/writers/endpoints)
Sourcefn description(&self) -> String
fn description(&self) -> String
Get a human-readable description of this IPC object