sod-bus
sod::MutService implementations to interact with bus::Bus.
Service Impls
BusBroadcasterbroadcasts to abus::Busand blocks until the operation is successful.BusTryBroadcastertries to broadcast to abus::Busand is able to be retried viasod::RetryServicewhen the bus buffer is full.BusReceiverreceives from abus::BusReader, blocking until an element is received.BusTryReceivertries to receive from abus::BusReaderand is able to be retried viasod::RetryServicewhen the bus is empty.
Example
use MutService;
use ;
let mut broadcaster = with_len;
let mut receiver1 = broadcaster.create_receiver;
let mut receiver2 = broadcaster.create_receiver;
broadcaster.process.unwrap;
broadcaster.process.unwrap;
broadcaster.process.unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;