pub enum InvalidSoftSlabLimit {
Zero,
AboveKernelLimit,
}Expand description
The reason a userspace soft slab limit is invalid.
Variants§
Zero
Zero would prohibit every allocation.
AboveKernelLimit
The requested limit exceeds the kernel hard limit.
Trait Implementations§
Source§impl Clone for InvalidSoftSlabLimit
impl Clone for InvalidSoftSlabLimit
impl Copy for InvalidSoftSlabLimit
Source§impl Debug for InvalidSoftSlabLimit
impl Debug for InvalidSoftSlabLimit
Source§impl Display for InvalidSoftSlabLimit
impl Display for InvalidSoftSlabLimit
impl Eq for InvalidSoftSlabLimit
Source§impl Error for InvalidSoftSlabLimit
impl Error for InvalidSoftSlabLimit
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for InvalidSoftSlabLimit
impl PartialEq for InvalidSoftSlabLimit
impl StructuralPartialEq for InvalidSoftSlabLimit
Auto Trait Implementations§
impl Freeze for InvalidSoftSlabLimit
impl RefUnwindSafe for InvalidSoftSlabLimit
impl Send for InvalidSoftSlabLimit
impl Sync for InvalidSoftSlabLimit
impl Unpin for InvalidSoftSlabLimit
impl UnsafeUnpin for InvalidSoftSlabLimit
impl UnwindSafe for InvalidSoftSlabLimit
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