pub struct WireguardIpAddress {
pub prefix_length: u8,
pub ip_addr: IpAddr,
}Fields§
§prefix_length: u8§ip_addr: IpAddrTrait Implementations§
Source§impl Clone for WireguardIpAddress
impl Clone for WireguardIpAddress
Source§fn clone(&self) -> WireguardIpAddress
fn clone(&self) -> WireguardIpAddress
Returns a duplicate 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 WireguardIpAddress
impl Debug for WireguardIpAddress
Source§impl From<&WireguardIpAddress> for Vec<WireguardAllowedIpAttr>
impl From<&WireguardIpAddress> for Vec<WireguardAllowedIpAttr>
Source§fn from(ip: &WireguardIpAddress) -> Self
fn from(ip: &WireguardIpAddress) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WireguardIpAddress
impl PartialEq for WireguardIpAddress
Source§impl TryFrom<&WireguardAllowedIp> for WireguardIpAddress
impl TryFrom<&WireguardAllowedIp> for WireguardIpAddress
Source§type Error = WireguardError
type Error = WireguardError
The type returned in the event of a conversion error.
Source§fn try_from(attrs: &WireguardAllowedIp) -> Result<Self, WireguardError>
fn try_from(attrs: &WireguardAllowedIp) -> Result<Self, WireguardError>
Performs the conversion.
impl Eq for WireguardIpAddress
impl StructuralPartialEq for WireguardIpAddress
Auto Trait Implementations§
impl Freeze for WireguardIpAddress
impl RefUnwindSafe for WireguardIpAddress
impl Send for WireguardIpAddress
impl Sync for WireguardIpAddress
impl Unpin for WireguardIpAddress
impl UnwindSafe for WireguardIpAddress
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