pub struct Observation {
pub kind: EntryKind,
pub identity: Option<ObjectId>,
pub size: Option<u64>,
pub modified: Option<FileTime>,
pub changed: Option<FileTime>,
pub permissions: Option<Permissions>,
pub uid: Option<u32>,
pub gid: Option<u32>,
pub links: Option<u64>,
pub digest: Option<[u8; 32]>,
}Fields§
§kind: EntryKind§identity: Option<ObjectId>§size: Option<u64>§modified: Option<FileTime>§changed: Option<FileTime>§permissions: Option<Permissions>§uid: Option<u32>§gid: Option<u32>§links: Option<u64>§digest: Option<[u8; 32]>Implementations§
Source§impl Observation
impl Observation
pub fn unknown(kind: EntryKind) -> Self
pub fn same_object(&self, other: &Self) -> bool
Sourcepub fn same_metadata(&self, other: &Self) -> bool
pub fn same_metadata(&self, other: &Self) -> bool
Compare metadata facts separately from an optional content observation.
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
Source§fn clone(&self) -> Observation
fn clone(&self) -> Observation
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 Observation
impl Debug for Observation
Source§impl<'de> Deserialize<'de> for Observation
impl<'de> Deserialize<'de> for Observation
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
impl Eq for Observation
Source§impl Hash for Observation
impl Hash for Observation
Source§impl PartialEq for Observation
impl PartialEq for Observation
Source§impl Serialize for Observation
impl Serialize for Observation
impl StructuralPartialEq for Observation
Auto Trait Implementations§
impl Freeze for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnsafeUnpin for Observation
impl UnwindSafe for Observation
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