Struct netwatch::interfaces::HomeRouter
source · pub struct HomeRouter {
pub gateway: IpAddr,
pub my_ip: Option<IpAddr>,
}Expand description
Likely IPs of the residentla router, and the ip address of the current machine using it.
Fields§
§gateway: IpAddrIp of the router.
my_ip: Option<IpAddr>Our local Ip if known.
Implementations§
source§impl HomeRouter
impl HomeRouter
Trait Implementations§
source§impl Clone for HomeRouter
impl Clone for HomeRouter
source§fn clone(&self) -> HomeRouter
fn clone(&self) -> HomeRouter
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for HomeRouter
impl RefUnwindSafe for HomeRouter
impl Send for HomeRouter
impl Sync for HomeRouter
impl Unpin for HomeRouter
impl UnwindSafe for HomeRouter
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