Skip to main content

ClientEvents

Type Alias ClientEvents 

Source
pub type ClientEvents = UnboundedReceiver<Result<Message, Error>>;
Expand description

Stream of regular Messages produced by the reader task. Returned alongside Client from Client::spawn. Single-consumer; the writer-side Client is Clone and can move freely between tasks while one task owns the receiver.

Aliased Typeยง

pub struct ClientEvents { /* private fields */ }