pub struct FileCacheKey {
pub file_last_modified_ns: u128,
pub file_created_ns: Option<u128>,
pub file_status_changed_ns: Option<u128>,
pub file_device_id: Option<u64>,
pub file_id: Option<u64>,
pub file_permissions_mode: u32,
pub file_size_bytes: u64,
}Expand description
File metadata used to validate cached entries against a filesystem path.
Fields§
§file_last_modified_ns: u128File modification time as nanoseconds since the Unix epoch.
file_created_ns: Option<u128>File creation time as nanoseconds since the Unix epoch, when available.
file_status_changed_ns: Option<u128>File status-change time as nanoseconds since the Unix epoch, when available.
file_device_id: Option<u64>Platform device identifier, when available.
file_id: Option<u64>Platform file identifier such as an inode, when available.
file_permissions_mode: u32Platform permission bits or readonly flag used to invalidate stale entries.
file_size_bytes: u64File size in bytes.
Implementations§
Trait Implementations§
Source§impl Clone for FileCacheKey
impl Clone for FileCacheKey
Source§fn clone(&self) -> FileCacheKey
fn clone(&self) -> FileCacheKey
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 FileCacheKey
impl Debug for FileCacheKey
Source§impl<'de> Deserialize<'de> for FileCacheKey
impl<'de> Deserialize<'de> for FileCacheKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FileCacheKey
impl PartialEq for FileCacheKey
Source§fn eq(&self, other: &FileCacheKey) -> bool
fn eq(&self, other: &FileCacheKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FileCacheKey
impl Serialize for FileCacheKey
impl Eq for FileCacheKey
impl StructuralPartialEq for FileCacheKey
Auto Trait Implementations§
impl Freeze for FileCacheKey
impl RefUnwindSafe for FileCacheKey
impl Send for FileCacheKey
impl Sync for FileCacheKey
impl Unpin for FileCacheKey
impl UnsafeUnpin for FileCacheKey
impl UnwindSafe for FileCacheKey
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