pub struct LruPolicy { /* private fields */ }Implementations§
Trait Implementations§
Source§impl EvictionPolicy for LruPolicy
impl EvictionPolicy for LruPolicy
type Error = EvictError
Source§fn touch(&self, id: FrameId) -> EvictResult<()>
fn touch(&self, id: FrameId) -> EvictResult<()>
Notifies the policy manager that a page controlled by the frame has been
referenced/accessed. Read more
Source§fn touch_with<T: AccessType>(
&self,
id: FrameId,
_access_type: T,
) -> EvictResult<()>
fn touch_with<T: AccessType>( &self, id: FrameId, _access_type: T, ) -> EvictResult<()>
Notifies the policy manager that a page controlled by the frame has been
referenced/accessed. In addition to mere occurrence of access, this
method also logs the type of the access.
Source§fn pin(&self, id: FrameId) -> EvictResult<()>
fn pin(&self, id: FrameId) -> EvictResult<()>
Pin a frame, marking it as non-evictable. Read more
Auto Trait Implementations§
impl Freeze for LruPolicy
impl !RefUnwindSafe for LruPolicy
impl Send for LruPolicy
impl Sync for LruPolicy
impl Unpin for LruPolicy
impl !UnwindSafe for LruPolicy
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