pub struct MemorySection {
pub maxmemory: u64,
pub maxmemory_policy: EvictionPolicy,
}Expand description
[memory] section.
Fields§
§maxmemory: u64Soft memory ceiling in bytes. 0 = unlimited. Default 0.
maxmemory_policy: EvictionPolicyAction when maxmemory is hit. Default NoEviction.
Trait Implementations§
Source§impl Clone for MemorySection
impl Clone for MemorySection
Source§fn clone(&self) -> MemorySection
fn clone(&self) -> MemorySection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MemorySection
Source§impl Debug for MemorySection
impl Debug for MemorySection
Source§impl Default for MemorySection
impl Default for MemorySection
impl Eq for MemorySection
Source§impl PartialEq for MemorySection
impl PartialEq for MemorySection
Source§fn eq(&self, other: &MemorySection) -> bool
fn eq(&self, other: &MemorySection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MemorySection
Auto Trait Implementations§
impl Freeze for MemorySection
impl RefUnwindSafe for MemorySection
impl Send for MemorySection
impl Sync for MemorySection
impl Unpin for MemorySection
impl UnsafeUnpin for MemorySection
impl UnwindSafe for MemorySection
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