pub enum PeerInfoSource {
Direct,
Routed,
}Expand description
Origin of an inbound PeerInfo frame.
Direct means it arrived on a session we have a Noise handshake
with; Routed means it arrived as a multi-hop control payload.
Variants§
Direct
Direct neighbour over an existing session.
Routed
Routed via the multi-hop control plane (mesh broadcast).
Trait Implementations§
Source§impl Clone for PeerInfoSource
impl Clone for PeerInfoSource
Source§fn clone(&self) -> PeerInfoSource
fn clone(&self) -> PeerInfoSource
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 PeerInfoSource
impl Debug for PeerInfoSource
Source§impl<'de> Deserialize<'de> for PeerInfoSource
impl<'de> Deserialize<'de> for PeerInfoSource
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
Source§impl PartialEq for PeerInfoSource
impl PartialEq for PeerInfoSource
Source§fn eq(&self, other: &PeerInfoSource) -> bool
fn eq(&self, other: &PeerInfoSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PeerInfoSource
impl Serialize for PeerInfoSource
impl Copy for PeerInfoSource
impl Eq for PeerInfoSource
impl StructuralPartialEq for PeerInfoSource
Auto Trait Implementations§
impl Freeze for PeerInfoSource
impl RefUnwindSafe for PeerInfoSource
impl Send for PeerInfoSource
impl Sync for PeerInfoSource
impl Unpin for PeerInfoSource
impl UnsafeUnpin for PeerInfoSource
impl UnwindSafe for PeerInfoSource
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