Trait IpcObject

Source
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§

Source

fn is_connected(&self) -> bool

Check if the 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§