pub struct CombinedState<V>{ /* private fields */ }Expand description
State container holding the latest values from multiple combined streams.
Used by operators that combine multiple streams such as combine_latest,
with_latest_from, and
emit_when.
§Examples
use fluxion_stream::CombinedState;
let state = CombinedState::new(vec![1, 2, 3]);
assert_eq!(state.values().len(), 3);
assert_eq!(state.values()[0], 1);Implementations§
Source§impl<V> CombinedState<V>
impl<V> CombinedState<V>
Trait Implementations§
Source§impl<V> Clone for CombinedState<V>
impl<V> Clone for CombinedState<V>
Source§fn clone(&self) -> CombinedState<V>
fn clone(&self) -> CombinedState<V>
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 moreSource§impl<V> Debug for CombinedState<V>
impl<V> Debug for CombinedState<V>
Source§impl<V> Ord for CombinedState<V>
impl<V> Ord for CombinedState<V>
Source§fn cmp(&self, other: &CombinedState<V>) -> Ordering
fn cmp(&self, other: &CombinedState<V>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<V> Ordered for CombinedState<V>
impl<V> Ordered for CombinedState<V>
Source§type Inner = CombinedState<V>
type Inner = CombinedState<V>
The type of the inner value wrapped by this ordered type
Source§fn order(&self) -> u64
fn order(&self) -> u64
Returns the ordering value for this item.
Stream operators use this to determine the order of items.
Source§fn with_order(value: Self::Inner, _order: u64) -> Self
fn with_order(value: Self::Inner, _order: u64) -> Self
Creates a new instance wrapping the given value with the specified order.
Source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Gets the inner value, consuming the wrapper.
Source§impl<V> PartialEq for CombinedState<V>
impl<V> PartialEq for CombinedState<V>
Source§impl<V> PartialOrd for CombinedState<V>
impl<V> PartialOrd for CombinedState<V>
impl<V> Eq for CombinedState<V>
impl<V> StructuralPartialEq for CombinedState<V>
Auto Trait Implementations§
impl<V> Freeze for CombinedState<V>
impl<V> RefUnwindSafe for CombinedState<V>where
V: RefUnwindSafe,
impl<V> Send for CombinedState<V>where
V: Send,
impl<V> Sync for CombinedState<V>where
V: Sync,
impl<V> Unpin for CombinedState<V>where
V: Unpin,
impl<V> UnwindSafe for CombinedState<V>where
V: 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