pub struct LinkXfrm;Expand description
Represent XFRM interface. Example code on creating a XFRM interface
use rtnetlink::{new_connection, LinkXfrm};
#[tokio::main]
async fn main() -> Result<(), String> {
let (connection, handle, _) = new_connection().unwrap();
tokio::spawn(connection);
handle
.link()
.add(LinkXfrm::new("xfrm8", 9, 0x08).build())
.execute()
.await
.map_err(|e| format!("{e}"))
}Please check LinkMessageBuilder::
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinkXfrm
impl RefUnwindSafe for LinkXfrm
impl Send for LinkXfrm
impl Sync for LinkXfrm
impl Unpin for LinkXfrm
impl UnwindSafe for LinkXfrm
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