pub struct ServerlessCacheEvictionPlan {
pub evict: Vec<PathBuf>,
pub bytes_after_eviction: u64,
}Fields§
§evict: Vec<PathBuf>§bytes_after_eviction: u64Implementations§
Source§impl ServerlessCacheEvictionPlan
impl ServerlessCacheEvictionPlan
pub fn plan(entries: &[ServerlessCacheEntry], max_bytes: u64) -> Self
Trait Implementations§
Source§impl Clone for ServerlessCacheEvictionPlan
impl Clone for ServerlessCacheEvictionPlan
Source§fn clone(&self) -> ServerlessCacheEvictionPlan
fn clone(&self) -> ServerlessCacheEvictionPlan
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 moreSource§impl Debug for ServerlessCacheEvictionPlan
impl Debug for ServerlessCacheEvictionPlan
impl Eq for ServerlessCacheEvictionPlan
Source§impl PartialEq for ServerlessCacheEvictionPlan
impl PartialEq for ServerlessCacheEvictionPlan
Source§fn eq(&self, other: &ServerlessCacheEvictionPlan) -> bool
fn eq(&self, other: &ServerlessCacheEvictionPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServerlessCacheEvictionPlan
Auto Trait Implementations§
impl Freeze for ServerlessCacheEvictionPlan
impl RefUnwindSafe for ServerlessCacheEvictionPlan
impl Send for ServerlessCacheEvictionPlan
impl Sync for ServerlessCacheEvictionPlan
impl Unpin for ServerlessCacheEvictionPlan
impl UnsafeUnpin for ServerlessCacheEvictionPlan
impl UnwindSafe for ServerlessCacheEvictionPlan
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