pub struct RtnlRouteClient { /* private fields */ }Implementations§
Source§impl RtnlRouteClient
impl RtnlRouteClient
pub fn ipv4_route_add(&self, route: Ipv4Route) -> Result<()>
pub fn ipv4_route_replace(&self, route: Ipv4Route) -> Result<()>
pub fn ipv4_route_del(&self, route: Ipv4Route) -> Result<()>
pub fn ipv4_route_list(&self) -> Result<Vec<Ipv4Route>>
pub fn ipv4_route_get(&self, destination: Ipv4Addr) -> Result<Ipv4Route>
pub fn ipv4_route_get_by_prefix(&self, prefix: Ipv4Net) -> Result<Ipv4Route>
pub fn ipv6_route_add(&self, route: Ipv6Route) -> Result<()>
pub fn ipv6_route_replace(&self, route: Ipv6Route) -> Result<()>
pub fn ipv6_route_del(&self, route: Ipv6Route) -> Result<()>
pub fn ipv6_route_list(&self) -> Result<Vec<Ipv6Route>>
pub fn ipv6_route_get(&self, destination: Ipv6Addr) -> Result<Ipv6Route>
pub fn ipv6_route_get_by_prefix(&self, prefix: Ipv6Net) -> Result<Ipv6Route>
Trait Implementations§
Source§impl Clone for RtnlRouteClient
impl Clone for RtnlRouteClient
Source§fn clone(&self) -> RtnlRouteClient
fn clone(&self) -> RtnlRouteClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RtnlRouteClient
impl Debug for RtnlRouteClient
impl Eq for RtnlRouteClient
Source§impl Hash for RtnlRouteClient
impl Hash for RtnlRouteClient
Source§impl PartialEq for RtnlRouteClient
impl PartialEq for RtnlRouteClient
impl StructuralPartialEq for RtnlRouteClient
Auto Trait Implementations§
impl Freeze for RtnlRouteClient
impl RefUnwindSafe for RtnlRouteClient
impl Send for RtnlRouteClient
impl Sync for RtnlRouteClient
impl Unpin for RtnlRouteClient
impl UnsafeUnpin for RtnlRouteClient
impl UnwindSafe for RtnlRouteClient
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