Struct oci_spec::runtime::LinuxHugepageLimitBuilder
source · pub struct LinuxHugepageLimitBuilder { /* private fields */ }
Expand description
Builder for LinuxHugepageLimit
.
Implementations§
source§impl LinuxHugepageLimitBuilder
impl LinuxHugepageLimitBuilder
sourcepub fn page_size<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn page_size<VALUE: Into<String>>(self, value: VALUE) -> Self
Pagesize is the hugepage size. Format: “<size><unit-prefix>B’ (e.g. 64KB, 2MB, 1GB, etc.)
sourcepub fn limit<VALUE: Into<i64>>(self, value: VALUE) -> Self
pub fn limit<VALUE: Into<i64>>(self, value: VALUE) -> Self
Limit is the limit of “hugepagesize” hugetlb reservations (if supported) or usage.
sourcepub fn build(self) -> Result<LinuxHugepageLimit, OciSpecError>
pub fn build(self) -> Result<LinuxHugepageLimit, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinuxHugepageLimitBuilder
impl RefUnwindSafe for LinuxHugepageLimitBuilder
impl Send for LinuxHugepageLimitBuilder
impl Sync for LinuxHugepageLimitBuilder
impl Unpin for LinuxHugepageLimitBuilder
impl UnwindSafe for LinuxHugepageLimitBuilder
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