pub enum Ip {
Any,
Net(IpNetwork),
}
Variants§
Implementations§
source§impl Ip
impl Ip
pub fn get_af(&self) -> AddrFamily
sourcepub fn to_pool_addr_list(&self) -> Result<PoolAddrList>
pub fn to_pool_addr_list(&self) -> Result<PoolAddrList>
Returns PoolAddrList initialized with receiver
Trait Implementations§
impl Copy for Ip
impl Eq for Ip
impl StructuralPartialEq for Ip
Auto Trait Implementations§
impl Freeze for Ip
impl RefUnwindSafe for Ip
impl Send for Ip
impl Sync for Ip
impl Unpin for Ip
impl UnwindSafe for Ip
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