pub struct TurnStream<T: Clone> { /* private fields */ }Expand description
A lossless stream of turn items or deltas for one active reader.
Implementations§
Source§impl<T: Clone> TurnStream<T>
impl<T: Clone> TurnStream<T>
Sourcepub async fn recv(&mut self) -> Result<Option<T>, TurnStreamError>
pub async fn recv(&mut self) -> Result<Option<T>, TurnStreamError>
The next element, or None once the turn has ended and every element
was delivered. Errors if the turn’s event source closed or failed, or
the client was closed, first.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for TurnStream<T>
impl<T> !UnwindSafe for TurnStream<T>
impl<T> Freeze for TurnStream<T>
impl<T> Send for TurnStream<T>
impl<T> Sync for TurnStream<T>
impl<T> Unpin for TurnStream<T>
impl<T> UnsafeUnpin for TurnStream<T>
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