pub struct LinuxNetDeviceBuilder { /* private fields */ }Expand description
Builder for LinuxNetDevice.
Implementations§
Source§impl LinuxNetDeviceBuilder
impl LinuxNetDeviceBuilder
Sourcepub fn name<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn name<VALUE: Into<String>>(self, value: VALUE) -> Self
Name of the device in the container namespace
Sourcepub fn build(self) -> Result<LinuxNetDevice, OciSpecError>
pub fn build(self) -> Result<LinuxNetDevice, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinuxNetDeviceBuilder
impl RefUnwindSafe for LinuxNetDeviceBuilder
impl Send for LinuxNetDeviceBuilder
impl Sync for LinuxNetDeviceBuilder
impl Unpin for LinuxNetDeviceBuilder
impl UnwindSafe for LinuxNetDeviceBuilder
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