Skip to main content

Change

Enum Change 

Source
pub enum Change {
Show 13 variants Appeared, Disappeared, Type, Permissions { old: u32, new: u32, }, Owner { old: Owner, new: Owner, }, Timestamps { old: Times, new: Times, }, Size { old: u64, new: u64, }, Content, Metadata, Entries { appeared: Vec<DirEntry>, disappeared: Vec<DirEntry>, retyped: Vec<DirEntry>, }, Order, Attributes { appeared: Vec<Attribute>, disappeared: Vec<Attribute>, changed: Vec<Attribute>, }, LinkTarget { old: PathBuf, new: PathBuf, },
}
Expand description

What changed about one recorded path, as a cache check found it.

Variants§

§

Appeared

Something exists where nothing did.

§

Disappeared

Nothing exists where something did.

§

Type

The type changed, such as a file that became a directory, or the path can or can no longer be read.

§

Permissions

A regular file’s or a directory’s permission bits changed, found without hashing.

Fields

§old: u32

The recorded permission bits.

§new: u32

The current permission bits.

§

Owner

A regular file’s or a directory’s owner changed, found without hashing.

Fields

§old: Owner

The recorded owner.

§new: Owner

The current owner.

§

Timestamps

A regular file’s or a directory’s modification or change time changed, found without hashing, for a step run with timestamps.

Fields

§old: Times

The recorded times.

§new: Times

The current times.

§

Size

A regular file’s size changed, found without hashing.

Fields

§old: u64

The recorded size in bytes.

§new: u64

The current size in bytes.

§

Content

A regular file that was read has the same size and different content, found by hashing.

§

Metadata

A regular file that was not read, and so has no hash, has the same size and different metadata.

§

Entries

The entries of a listed directory changed. The entries that appeared, disappeared, or changed type are named when both listings kept their entries; otherwise all three lists are empty.

Fields

§appeared: Vec<DirEntry>

The entries that appeared, sorted by name.

§disappeared: Vec<DirEntry>

The entries that disappeared, as recorded, sorted by name.

§retyped: Vec<DirEntry>

The entries whose type changed, with their current type, sorted by name.

§

Order

A listed directory has the same entries in a different order.

§

Attributes

The extended attributes of a path whose attributes were recorded changed, for the path itself or, for a symbolic link, for what it points to: the attributes that appeared, disappeared, or changed value, each sorted by name. All three lists are empty when only whether the attributes could be read changed.

Fields

§appeared: Vec<Attribute>

The attributes that appeared, with their current hash.

§disappeared: Vec<Attribute>

The attributes that disappeared, as recorded.

§changed: Vec<Attribute>

The attributes whose value changed, with their current hash.

§

LinkTarget

A symbolic link points somewhere else.

Fields

§old: PathBuf

The recorded target.

§new: PathBuf

The current target.

Trait Implementations§

Source§

impl Clone for Change

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Change

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'bytes, Ctx> Decode<'bytes, Ctx> for Change

Source§

fn decode( __d777: &mut Decoder<'bytes>, __ctx777: &mut Ctx, ) -> Result<Change, Error>

Decode a value using the given Decoder. Read more
§

fn nil() -> Option<Self>

If possible, return a nil value of Self. Read more
Source§

impl Display for Change

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Ctx> Encode<Ctx> for Change

Source§

fn encode<__W777>( &self, __e777: &mut Encoder<__W777>, __ctx777: &mut Ctx, ) -> Result<(), Error<__W777::Error>>
where __W777: Write,

Encode a value of this type using the given Encoder. Read more
§

fn is_nil(&self) -> bool

Is this value of Self a nil value? Read more
Source§

impl Eq for Change

Source§

impl Hash for Change

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Change

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Change

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more