Struct netsim_embed::Network
source · pub struct Network { /* private fields */ }
Implementations§
source§impl Network
impl Network
pub fn id(&self) -> NetworkId
pub fn range(&self) -> Ipv4Range
pub fn set_count_filter(&self, filter: Option<Filter>)
pub fn num_forwarded(&self) -> usize
pub fn num_invalid(&self) -> usize
pub fn num_disabled(&self) -> usize
pub fn num_unroutable(&self) -> usize
pub fn unique_addr(&mut self) -> Ipv4Addr
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl !UnwindSafe for Network
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