Struct EventStream
pub struct EventStream<E> { /* private fields */ }Implementations§
§impl<E> EventStream<E>
impl<E> EventStream<E>
pub const fn new() -> EventStream<E>
pub const fn from_events(events: Vec<E>) -> EventStream<E>
pub fn push(&mut self, event: E)
pub fn iter(&self) -> Iter<'_, E>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
§impl<E> Clone for EventStream<E>where
E: Clone,
impl<E> Clone for EventStream<E>where
E: Clone,
§fn clone(&self) -> EventStream<E>
fn clone(&self) -> EventStream<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl<E> Debug for EventStream<E>where
E: Debug,
impl<E> Debug for EventStream<E>where
E: Debug,
§impl<E> Default for EventStream<E>where
E: Default,
impl<E> Default for EventStream<E>where
E: Default,
§fn default() -> EventStream<E>
fn default() -> EventStream<E>
Returns the “default value” for a type. Read more
§impl<'a, E> IntoIterator for &'a EventStream<E>
impl<'a, E> IntoIterator for &'a EventStream<E>
§impl<E> PartialEq for EventStream<E>where
E: PartialEq,
impl<E> PartialEq for EventStream<E>where
E: PartialEq,
impl<E> Eq for EventStream<E>where
E: Eq,
impl<E> StructuralPartialEq for EventStream<E>
Auto Trait Implementations§
impl<E> Freeze for EventStream<E>
impl<E> RefUnwindSafe for EventStream<E>where
E: RefUnwindSafe,
impl<E> Send for EventStream<E>where
E: Send,
impl<E> Sync for EventStream<E>where
E: Sync,
impl<E> Unpin for EventStream<E>where
E: Unpin,
impl<E> UnsafeUnpin for EventStream<E>
impl<E> UnwindSafe for EventStream<E>where
E: 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