Struct bp7::eid::DtnAddress
source · [−]pub struct DtnAddress(_);
Implementations
sourceimpl 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
sourceimpl Clone for DtnAddress
impl Clone for DtnAddress
sourcefn clone(&self) -> DtnAddress
fn clone(&self) -> DtnAddress
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DtnAddress
impl Debug for DtnAddress
sourceimpl<'de> Deserialize<'de> for DtnAddress
impl<'de> Deserialize<'de> for DtnAddress
sourcefn 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
sourceimpl Display for DtnAddress
impl Display for DtnAddress
sourceimpl Hash for DtnAddress
impl Hash for DtnAddress
sourceimpl PartialEq<DtnAddress> for DtnAddress
impl PartialEq<DtnAddress> for DtnAddress
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &DtnAddress) -> bool
fn ne(&self, other: &DtnAddress) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more