Struct bp7::eid::DtnAddress
source · pub struct DtnAddress(/* private fields */);
Implementations§
source§impl DtnAddress
impl DtnAddress
pub fn new(node: &str, service: &str) -> DtnAddress
pub fn node_name(&self) -> &str
pub fn service_name(&self) -> Option<&str>
pub fn is_non_singleton(&self) -> bool
pub fn is_singleton(&self) -> bool
Trait Implementations§
source§impl Clone for DtnAddress
impl Clone for DtnAddress
source§fn clone(&self) -> DtnAddress
fn clone(&self) -> DtnAddress
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 DtnAddress
impl Debug for DtnAddress
source§impl<'de> Deserialize<'de> for DtnAddress
impl<'de> Deserialize<'de> for DtnAddress
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 DtnAddress
impl Display for DtnAddress
source§impl Hash for DtnAddress
impl Hash for DtnAddress
source§impl PartialEq for DtnAddress
impl PartialEq for DtnAddress
source§fn eq(&self, other: &DtnAddress) -> bool
fn eq(&self, other: &DtnAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DtnAddress
impl Serialize for DtnAddress
impl Eq for DtnAddress
impl StructuralEq for DtnAddress
impl StructuralPartialEq for DtnAddress
Auto Trait Implementations§
impl RefUnwindSafe for DtnAddress
impl Send for DtnAddress
impl Sync for DtnAddress
impl Unpin for DtnAddress
impl UnwindSafe for DtnAddress
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