Struct rtnetlink::NetworkNamespace [−][src]
pub struct NetworkNamespace();
Implementations
Add a new network namespace.
This is equivalent to ip netns add NS_NAME
.
Remove a network namespace
This is equivalent to ip netns del NS_NAME
.
This is the parent process form the fork, it waits for the child to exit properly
This is the child process, it will actually create the namespace resources. It creates the folder and namespace file. Returns the namespace file path
This function unshare the calling process and move into the given network namespace
Auto Trait Implementations
impl RefUnwindSafe for NetworkNamespace
impl Send for NetworkNamespace
impl Sync for NetworkNamespace
impl Unpin for NetworkNamespace
impl UnwindSafe for NetworkNamespace