Enum dtn7::core::peer::PeerAddress
source · pub enum PeerAddress {
Ip(IpAddr),
BroadcastGeneric(String, String),
Generic(String),
}
Variants§
Ip(IpAddr)
Unicast IP node, e.g., reachable via mtcp, tcp or http
BroadcastGeneric(String, String)
Generic peer reachable via a broadcast medium, e.g., LoRa “868_1” “node_id_1”
Generic(String)
Generic peer reachable via a unicast transmission, e.g., MAC address “AA:BB:CC:DD:EE:FF”
Trait Implementations§
source§impl Clone for PeerAddress
impl Clone for PeerAddress
source§fn clone(&self) -> PeerAddress
fn clone(&self) -> PeerAddress
Returns a copy 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 Debug for PeerAddress
impl Debug for PeerAddress
source§impl<'de> Deserialize<'de> for PeerAddress
impl<'de> Deserialize<'de> for PeerAddress
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 Display for PeerAddress
impl Display for PeerAddress
source§impl From<IpAddr> for PeerAddress
impl From<IpAddr> for PeerAddress
source§impl From<String> for PeerAddress
impl From<String> for PeerAddress
source§impl Hash for PeerAddress
impl Hash for PeerAddress
source§impl PartialEq for PeerAddress
impl PartialEq for PeerAddress
source§fn eq(&self, other: &PeerAddress) -> bool
fn eq(&self, other: &PeerAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PeerAddress
impl Serialize for PeerAddress
impl Eq for PeerAddress
impl StructuralPartialEq for PeerAddress
Auto Trait Implementations§
impl Freeze for PeerAddress
impl RefUnwindSafe for PeerAddress
impl Send for PeerAddress
impl Sync for PeerAddress
impl Unpin for PeerAddress
impl UnwindSafe for PeerAddress
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
source§impl<T> CallHasher for T
impl<T> CallHasher for T
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.