pub struct StoreState { /* private fields */ }
Expand description

The state of the Nix store at a given point in time

Implementations

Create a new, empty, StoreState with the specified Nix configuration

Add a path to the StoreState

Errors

Will propagate an error if the prefix is impossible to strip due to misconfiguration

Iterator over the paths in this StoreState

Return all paths that are different between this StoreState and another StoreState

This returns elements that are in other, but not in self

Errors

Will return an error if two stores with incompatible configuration are compared.

Returns the number of unique paths in the store

Create a StoreState from the current status of the Nix store pointed to by the given NixConfiguration including installables as well as other paths matching the supplied regexes

Errors

Will propagate any IO errors that occur trying to enumerate the Nix store

Create a StoreState from the current status of the Nix store pointed to by the given NixConfiguration

This is a wrapper around from_store_including with the default include filters implied.

The default filters will include:

  • Any installable (non-disableable)
  • Any nix-shell derivations
Errors

Will propagate any IO errors that occur trying to enumerate the Nix store

Filter this Store state against the given nix binary cache, removing any paths that are present in the cache. The provided cache uri is expected not to have a trailing slash

Errors

Will propagate any network or nix store interaction errors that occur

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Attempt to decode this type with the given Decode.

Returns the “default value” for a type. Read more

Encode a given type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Attempt to decode this type with the given BorrowDecode.

Mutably borrows from an owned value. Read more

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

Returns the argument unchanged.

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

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

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

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

Calls U::from(self).

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

Should always be Self

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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