pub enum ManagedMemoryRequest {
WholeLimit,
ExplicitBytes(u64),
Fraction {
numerator: u64,
denominator: u64,
},
}Expand description
How the requested managed bytes are derived from the effective limit.
Variants§
WholeLimit
Charge the effective limit itself, the behavior before this policy existed.
ExplicitBytes(u64)
Charge an explicit byte count that is independent of the detected limit.
Fraction
Charge a bounded fraction of the effective limit.
Trait Implementations§
Source§impl Clone for ManagedMemoryRequest
impl Clone for ManagedMemoryRequest
impl Copy for ManagedMemoryRequest
Source§impl Debug for ManagedMemoryRequest
impl Debug for ManagedMemoryRequest
Source§impl Default for ManagedMemoryRequest
impl Default for ManagedMemoryRequest
impl Eq for ManagedMemoryRequest
Source§impl PartialEq for ManagedMemoryRequest
impl PartialEq for ManagedMemoryRequest
impl StructuralPartialEq for ManagedMemoryRequest
Auto Trait Implementations§
impl Freeze for ManagedMemoryRequest
impl RefUnwindSafe for ManagedMemoryRequest
impl Send for ManagedMemoryRequest
impl Sync for ManagedMemoryRequest
impl Unpin for ManagedMemoryRequest
impl UnsafeUnpin for ManagedMemoryRequest
impl UnwindSafe for ManagedMemoryRequest
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