pub struct Namespace { /* private fields */ }Implementations§
Source§impl Namespace
impl Namespace
pub fn new(id: String, path: String) -> Self
pub fn with_args(self, args: HashMap<String, String>) -> Self
pub fn with_capabilities(self, capabilities: HashMap<String, String>) -> Self
pub fn add_arg(&mut self, key: &str, value: &str)
pub fn add_capability(&mut self, key: &str, value: &str)
pub fn config(&self, ifname: String) -> RuntimeConf
pub fn get_id(&self) -> &str
pub fn get_path(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Namespace
impl RefUnwindSafe for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnwindSafe for Namespace
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