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