pub struct EventStream { /* private fields */ }Expand description
The receiving end of a session’s Event stream.
EventStream::next returns None once the connection has ended. An Event::Disconnected
is not necessarily the last event: the client reconnects and reports the next attempt’s events
on the same stream, and only a fatal audio-sink failure or a dropped handle ends the sequence.
Dropping the stream ends the connection: the next time the client would emit an event, it stops
instead.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for EventStream
impl Freeze for EventStream
impl Move for EventStream
impl RefUnwindSafe for EventStream
impl Send for EventStream
impl Sync for EventStream
impl Unpin for EventStream
impl UnsafeUnpin for EventStream
impl UnwindSafe for EventStream
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more