pub struct StreamEvents { /* private fields */ }Implementations§
Source§impl StreamEvents
impl StreamEvents
pub fn new() -> Self
Sourcepub fn seed_live(&mut self, live: impl IntoIterator<Item = (Platform, String)>)
pub fn seed_live(&mut self, live: impl IntoIterator<Item = (Platform, String)>)
follow:live:snapshot: these were live before we connected, so their
next went-live (a server re-broadcast) is not news.
Sourcepub fn push(&mut self, line: ChatLine, now_ms: u64) -> Vec<ChatLine>
pub fn push(&mut self, line: ChatLine, now_ms: u64) -> Vec<ChatLine>
one live line. returns what to show now (zero or one line).
Trait Implementations§
Auto Trait Implementations§
impl Forget for StreamEvents
impl Freeze for StreamEvents
impl RefUnwindSafe for StreamEvents
impl Send for StreamEvents
impl Sync for StreamEvents
impl Unpin for StreamEvents
impl UnsafeUnpin for StreamEvents
impl UnwindSafe for StreamEvents
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