Enum ipfs_embed::AddressSource
source · pub enum AddressSource {
Incoming,
Listen,
Kad,
Mdns,
Candidate,
User,
Dial,
}
Variants§
Implementations§
source§impl AddressSource
impl AddressSource
pub fn is_confirmed(&self) -> bool
pub fn is_to_probe(&self) -> bool
pub fn is_to_translate(&self) -> bool
Trait Implementations§
source§impl Clone for AddressSource
impl Clone for AddressSource
source§fn clone(&self) -> AddressSource
fn clone(&self) -> AddressSource
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 AddressSource
impl Debug for AddressSource
source§impl Ord for AddressSource
impl Ord for AddressSource
source§fn cmp(&self, other: &AddressSource) -> Ordering
fn cmp(&self, other: &AddressSource) -> 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 PartialEq<AddressSource> for AddressSource
impl PartialEq<AddressSource> for AddressSource
source§fn eq(&self, other: &AddressSource) -> bool
fn eq(&self, other: &AddressSource) -> bool
source§impl PartialOrd<AddressSource> for AddressSource
impl PartialOrd<AddressSource> for AddressSource
source§fn partial_cmp(&self, other: &AddressSource) -> Option<Ordering>
fn partial_cmp(&self, other: &AddressSource) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more