pub trait ClientIo {
// Required methods
fn recv(&mut self) -> Result<Option<Arbitrator<'_>>, ClientIoError>;
fn send(&mut self, msg: &Component<'_>) -> Result<(), ClientIoError>;
}Expand description
A trait for defining the IO layer for a given client
Required Methods§
Sourcefn recv(&mut self) -> Result<Option<Arbitrator<'_>>, ClientIoError>
fn recv(&mut self) -> Result<Option<Arbitrator<'_>>, ClientIoError>
Attempt to receive one message FROM the Arbitrator/Broker, TO the Client