pub enum StreamEvent<I, S> {
Next(I),
Done(S),
}Expand description
An event from a StateStream.
Variants§
Next(I)
The next item in the stream.
Done(S)
The state of the stream, returned when streaming has completed.
Auto Trait Implementations§
impl<I, S> Freeze for StreamEvent<I, S>
impl<I, S> RefUnwindSafe for StreamEvent<I, S>where
I: RefUnwindSafe,
S: RefUnwindSafe,
impl<I, S> Send for StreamEvent<I, S>
impl<I, S> Sync for StreamEvent<I, S>
impl<I, S> Unpin for StreamEvent<I, S>
impl<I, S> UnsafeUnpin for StreamEvent<I, S>where
I: UnsafeUnpin,
S: UnsafeUnpin,
impl<I, S> UnwindSafe for StreamEvent<I, S>where
I: UnwindSafe,
S: UnwindSafe,
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