pub trait SyslogQueueOneChanRcv<C> {
// Required method
fn recv_once_blocking(self) -> SyRes<C>;
// Provided method
async fn recv_once(self) -> SyRes<C>
where Self: Sized { ... }
}
Expand description
A trait which should be implemented by the channel provider which forms a command queue. This trait provides a Oneshot channel a receive interface for both sync and async modes.
Required Methods§
Sourcefn recv_once_blocking(self) -> SyRes<C>
fn recv_once_blocking(self) -> SyRes<C>
Receives once from the channel in sync mode.