pub struct AccessPattern { /* private fields */ }Expand description
Records how a file is accessed. For security sake, each file can associate an access pattern recorder, which is globally configured through nydusd configuration file. For now, the pattern is composed of: 1. How many times a file is read regardless of io block size and request offset. And this counter can not be cleared. 2. First time point at which this file is read. It’s wall-time in unit of seconds. 3. File path relative to current rafs root.
Yes, we now don’t have an abundant pattern recorder now. It can be negotiated in the future about how to enrich it.
Trait Implementations§
Source§impl Debug for AccessPattern
impl Debug for AccessPattern
Source§impl Default for AccessPattern
impl Default for AccessPattern
Source§fn default() -> AccessPattern
fn default() -> AccessPattern
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for AccessPattern
impl RefUnwindSafe for AccessPattern
impl Send for AccessPattern
impl Sync for AccessPattern
impl Unpin for AccessPattern
impl UnwindSafe for AccessPattern
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