Struct bp7::eid::IpnAddress
source · [−]pub struct IpnAddress(_, _);
Implementations
sourceimpl IpnAddress
impl IpnAddress
pub fn new(node: u64, service: u64) -> IpnAddress
pub fn node_number(&self) -> u64
pub fn service_number(&self) -> u64
Trait Implementations
sourceimpl Clone for IpnAddress
impl Clone for IpnAddress
sourcefn clone(&self) -> IpnAddress
fn clone(&self) -> IpnAddress
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 IpnAddress
impl Debug for IpnAddress
sourceimpl<'de> Deserialize<'de> for IpnAddress
impl<'de> Deserialize<'de> for IpnAddress
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 IpnAddress
impl Display for IpnAddress
sourceimpl Hash for IpnAddress
impl Hash for IpnAddress
sourceimpl PartialEq<IpnAddress> for IpnAddress
impl PartialEq<IpnAddress> for IpnAddress
sourcefn eq(&self, other: &IpnAddress) -> bool
fn eq(&self, other: &IpnAddress) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IpnAddress) -> bool
fn ne(&self, other: &IpnAddress) -> bool
This method tests for !=
.
sourceimpl Serialize for IpnAddress
impl Serialize for IpnAddress
sourceimpl TryFrom<IpnAddress> for EndpointID
impl TryFrom<IpnAddress> for EndpointID
type Error = EndpointIdError
type Error = EndpointIdError
The type returned in the event of a conversion error.
sourcefn try_from(item: IpnAddress) -> Result<Self, Self::Error>
fn try_from(item: IpnAddress) -> Result<Self, Self::Error>
Performs the conversion.
impl Copy for IpnAddress
impl Eq for IpnAddress
impl StructuralEq for IpnAddress
impl StructuralPartialEq for IpnAddress
Auto Trait Implementations
impl RefUnwindSafe for IpnAddress
impl Send for IpnAddress
impl Sync for IpnAddress
impl Unpin for IpnAddress
impl UnwindSafe for IpnAddress
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