pub enum AccessTimePolicy {
Never,
Relative,
Always,
}Expand description
Policy controlling when read operations update a mounted file system’s access time.
The policy applies to read-only opens: reads through a read-write handle do not update the access time, so a read-write open that writes nothing costs no metadata commit.
Variants§
Never
Never update the access time on read. Writes update the modification and status times on the first write of more than zero bytes after an open or a flush.
Relative
Update the access time on read only when it is older than the modification or status time, or older than 24 hours.
Always
Always update the access time on read, including directory opens.
Trait Implementations§
Source§impl Clone for AccessTimePolicy
impl Clone for AccessTimePolicy
Source§fn clone(&self) -> AccessTimePolicy
fn clone(&self) -> AccessTimePolicy
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 AccessTimePolicy
impl Debug for AccessTimePolicy
Source§impl Default for AccessTimePolicy
impl Default for AccessTimePolicy
Source§fn default() -> AccessTimePolicy
fn default() -> AccessTimePolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for AccessTimePolicy
impl PartialEq for AccessTimePolicy
Source§fn eq(&self, other: &AccessTimePolicy) -> bool
fn eq(&self, other: &AccessTimePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AccessTimePolicy
impl Eq for AccessTimePolicy
impl StructuralPartialEq for AccessTimePolicy
Auto Trait Implementations§
impl Freeze for AccessTimePolicy
impl RefUnwindSafe for AccessTimePolicy
impl Send for AccessTimePolicy
impl Sync for AccessTimePolicy
impl Unpin for AccessTimePolicy
impl UnsafeUnpin for AccessTimePolicy
impl UnwindSafe for AccessTimePolicy
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