pub struct PersistedStreamState {
pub known_peers: Vec<String>,
pub known_prefixes: Vec<String>,
pub active_routes: Vec<String>,
}Expand description
Persisted representation of StreamState.
Fields§
§known_peers: Vec<String>§known_prefixes: Vec<String>§active_routes: Vec<String>Trait Implementations§
Source§impl Clone for PersistedStreamState
impl Clone for PersistedStreamState
Source§fn clone(&self) -> PersistedStreamState
fn clone(&self) -> PersistedStreamState
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 PersistedStreamState
impl Debug for PersistedStreamState
Source§impl Default for PersistedStreamState
impl Default for PersistedStreamState
Source§fn default() -> PersistedStreamState
fn default() -> PersistedStreamState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PersistedStreamState
impl<'de> Deserialize<'de> for PersistedStreamState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PersistedStreamState
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 PersistedStreamState
impl PartialEq for PersistedStreamState
Source§fn eq(&self, other: &PersistedStreamState) -> bool
fn eq(&self, other: &PersistedStreamState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PersistedStreamState
impl Serialize for PersistedStreamState
impl StructuralPartialEq for PersistedStreamState
Auto Trait Implementations§
impl Freeze for PersistedStreamState
impl RefUnwindSafe for PersistedStreamState
impl Send for PersistedStreamState
impl Sync for PersistedStreamState
impl Unpin for PersistedStreamState
impl UnsafeUnpin for PersistedStreamState
impl UnwindSafe for PersistedStreamState
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.