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