pub struct StaticIPV4AddrSource { /* private fields */ }
Expand description
An IPV4AddrSource that always returns the same thing
Implementations§
Source§impl StaticIPV4AddrSource
impl StaticIPV4AddrSource
pub fn new(addr: Ipv4Addr) -> StaticIPV4AddrSource
Trait Implementations§
Source§impl Clone for StaticIPV4AddrSource
impl Clone for StaticIPV4AddrSource
Source§fn clone(&self) -> StaticIPV4AddrSource
fn clone(&self) -> StaticIPV4AddrSource
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 IPV4AddrSource for StaticIPV4AddrSource
impl IPV4AddrSource for StaticIPV4AddrSource
Source§fn get_best_ipv4(&self) -> Option<Ipv4Addr>
fn get_best_ipv4(&self) -> Option<Ipv4Addr>
Retrieves the IPv4 address that the source thinks we should have,
or None if it can’t make a determination at this time. Read more
Auto Trait Implementations§
impl Freeze for StaticIPV4AddrSource
impl RefUnwindSafe for StaticIPV4AddrSource
impl Send for StaticIPV4AddrSource
impl Sync for StaticIPV4AddrSource
impl Unpin for StaticIPV4AddrSource
impl UnwindSafe for StaticIPV4AddrSource
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