pub struct EventStream<S> { /* private fields */ }
Expand description
A Stream of events
Implementations§
Source§impl<S> EventStream<S>
impl<S> EventStream<S>
Sourcepub fn set_last_event_id(&mut self, id: impl Into<String>)
pub fn set_last_event_id(&mut self, id: impl Into<String>)
Set the last event ID of the stream. Useful for initializing the stream with a previous last event ID
Sourcepub fn last_event_id(&self) -> &str
pub fn last_event_id(&self) -> &str
Get the last event ID of the stream
Trait Implementations§
Source§impl<S, B, E> Stream for EventStream<S>
impl<S, B, E> Stream for EventStream<S>
impl<'__pin, S> Unpin for EventStream<S>where
__Origin<'__pin, S>: Unpin,
Auto Trait Implementations§
impl<S> Freeze for EventStream<S>where
S: Freeze,
impl<S> RefUnwindSafe for EventStream<S>where
S: RefUnwindSafe,
impl<S> Send for EventStream<S>where
S: Send,
impl<S> Sync for EventStream<S>where
S: Sync,
impl<S> UnwindSafe for EventStream<S>where
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