pub struct StreamState {
pub known_peers: HashSet<String>,
pub known_prefixes: HashSet<String>,
pub active_routes: HashSet<String>,
}Expand description
Runtime graph state for mapping INSERT vs UPDATE vs DELETE.
Fields§
§known_peers: HashSet<String>Known peer node IDs ({host}|{peer_ip}).
known_prefixes: HashSet<String>Known prefix node IDs ({prefix}).
active_routes: HashSet<String>Active ROUTES relationship IDs ({host}|{peer_ip}|{prefix}).
Trait Implementations§
Source§impl Clone for StreamState
impl Clone for StreamState
Source§fn clone(&self) -> StreamState
fn clone(&self) -> StreamState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamState
impl Debug for StreamState
Source§impl Default for StreamState
impl Default for StreamState
Source§fn default() -> StreamState
fn default() -> StreamState
Returns the “default value” for a type. Read more
impl Eq for StreamState
Source§impl From<&StreamState> for PersistedStreamState
impl From<&StreamState> for PersistedStreamState
Source§fn from(state: &StreamState) -> Self
fn from(state: &StreamState) -> Self
Converts to this type from the input type.
Source§impl From<PersistedStreamState> for StreamState
impl From<PersistedStreamState> for StreamState
Source§fn from(state: PersistedStreamState) -> Self
fn from(state: PersistedStreamState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StreamState
impl PartialEq for StreamState
Source§fn eq(&self, other: &StreamState) -> bool
fn eq(&self, other: &StreamState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamState
Auto Trait Implementations§
impl Freeze for StreamState
impl RefUnwindSafe for StreamState
impl Send for StreamState
impl Sync for StreamState
impl Unpin for StreamState
impl UnsafeUnpin for StreamState
impl UnwindSafe for StreamState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.