Struct netsim_embed_router::Ipv4Router
source · pub struct Ipv4Router { /* private fields */ }
Implementations§
source§impl Ipv4Router
impl Ipv4Router
pub fn new(addr: Ipv4Addr) -> Self
pub fn forwarded(&self) -> usize
pub fn invalid(&self) -> usize
pub fn disabled(&self) -> usize
pub fn unroutable(&self) -> usize
pub fn set_filter(&self, filter: Option<Filter>)
pub fn add_connection(&self, id: usize, plug: Plug, routes: Vec<Ipv4Route>)
pub async fn remove_connection(&self, id: usize) -> Option<Plug>
pub fn enable_route(&self, id: usize)
pub fn disable_route(&self, id: usize)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Ipv4Router
impl Send for Ipv4Router
impl Sync for Ipv4Router
impl Unpin for Ipv4Router
impl !UnwindSafe for Ipv4Router
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