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