pub struct NetDevicesBuilder { /* private fields */ }Expand description
Builder for NetDevices.
Implementations§
Source§impl NetDevicesBuilder
impl NetDevicesBuilder
Sourcepub fn enabled<VALUE: Into<bool>>(self, value: VALUE) -> Self
pub fn enabled<VALUE: Into<bool>>(self, value: VALUE) -> Self
“enabled” field represents whether Net Devices support is compiled in. Unrelated to whether the host supports Net Devices or not.
Sourcepub fn build(self) -> Result<NetDevices, OciSpecError>
pub fn build(self) -> Result<NetDevices, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NetDevicesBuilder
impl RefUnwindSafe for NetDevicesBuilder
impl Send for NetDevicesBuilder
impl Sync for NetDevicesBuilder
impl Unpin for NetDevicesBuilder
impl UnwindSafe for NetDevicesBuilder
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