pub struct NetAddress {
pub address: Address,
pub mask: NetMask,
}Expand description
Address of a network, i.e. an Address in combination with a NetMask.
Fields§
§address: Address§mask: NetMaskTrait Implementations§
Source§impl Bind<NetAddress> for ActorContext
impl Bind<NetAddress> for ActorContext
async fn bind( &mut self, args: BindArgs<NetAddress>, ) -> Result<(), ErrorOf<BindErrorKind>>
Source§impl Clone for NetAddress
impl Clone for NetAddress
Source§fn clone(&self) -> NetAddress
fn clone(&self) -> NetAddress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NetAddress
Source§impl Debug for NetAddress
impl Debug for NetAddress
Source§impl<'de> Deserialize<'de> for NetAddress
impl<'de> Deserialize<'de> for NetAddress
Source§fn deserialize<D>(
deserializer: D,
) -> Result<NetAddress, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<NetAddress, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for NetAddress
impl Display for NetAddress
impl Eq for NetAddress
Source§impl From<Address> for NetAddress
impl From<Address> for NetAddress
Source§fn from(address: Address) -> NetAddress
fn from(address: Address) -> NetAddress
Converts to this type from the input type.
Source§impl From<AddressRange> for NetAddress
impl From<AddressRange> for NetAddress
Source§fn from(range: AddressRange) -> NetAddress
fn from(range: AddressRange) -> NetAddress
Converts to this type from the input type.
Source§impl From<NetAddress> for AddressRange
impl From<NetAddress> for AddressRange
Source§fn from(net: NetAddress) -> AddressRange
fn from(net: NetAddress) -> AddressRange
Converts to this type from the input type.
Source§impl FromStr for NetAddress
impl FromStr for NetAddress
Source§type Err = NetAddressParseError
type Err = NetAddressParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<NetAddress, <NetAddress as FromStr>::Err>
fn from_str(s: &str) -> Result<NetAddress, <NetAddress as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for NetAddress
impl Hash for NetAddress
impl Message for NetAddress
Source§impl Ord for NetAddress
impl Ord for NetAddress
Source§fn cmp(&self, other: &NetAddress) -> Ordering
fn cmp(&self, other: &NetAddress) -> Ordering
1.21.0 (const: unstable) · 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 for NetAddress
impl PartialEq for NetAddress
Source§fn eq(&self, other: &NetAddress) -> bool
fn eq(&self, other: &NetAddress) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for NetAddress
impl PartialOrd for NetAddress
Source§impl Serialize for NetAddress
impl Serialize for NetAddress
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for NetAddress
Auto Trait Implementations§
impl Freeze for NetAddress
impl RefUnwindSafe for NetAddress
impl Send for NetAddress
impl Sync for NetAddress
impl Unpin for NetAddress
impl UnsafeUnpin for NetAddress
impl UnwindSafe for NetAddress
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compares
self to key and returns true if they are equal.impl<K> ErrorKind for K
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more