Struct oci_spec::runtime::LinuxNetworkBuilder
source · pub struct LinuxNetworkBuilder { /* private fields */ }
Expand description
Builder for LinuxNetwork
.
Implementations§
source§impl LinuxNetworkBuilder
impl LinuxNetworkBuilder
sourcepub fn class_id<VALUE: Into<u32>>(self, value: VALUE) -> Self
pub fn class_id<VALUE: Into<u32>>(self, value: VALUE) -> Self
Set class identifier for container’s network packets
sourcepub fn priorities<VALUE: Into<Vec<LinuxInterfacePriority>>>(
self,
value: VALUE,
) -> Self
pub fn priorities<VALUE: Into<Vec<LinuxInterfacePriority>>>( self, value: VALUE, ) -> Self
Set priority of network traffic for container.
sourcepub fn build(self) -> Result<LinuxNetwork, OciSpecError>
pub fn build(self) -> Result<LinuxNetwork, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinuxNetworkBuilder
impl RefUnwindSafe for LinuxNetworkBuilder
impl Send for LinuxNetworkBuilder
impl Sync for LinuxNetworkBuilder
impl Unpin for LinuxNetworkBuilder
impl UnwindSafe for LinuxNetworkBuilder
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