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

Manages all users.

Implementations

Create a new user manager under the given path. Returns an error if the path is already present.

Opens an old user manager under the given path.

Inserts a requiremnt into the current user. If the requirement was not fullfilled, a try to get a matching package from the store is started. If the package could be retrieved a new generation is created and true is returned. If it fullfilled false is returned

Remove a package from the current user. If the package was present return true and create a new generation without the package. If it was not present false is returned.

Removes the specified generation. Returns true if the generation was present and false if it wasnt.

Lists all packages in the current generation.

Lists all generations

Checks wether the package is stored inside any generation of all users.

Returns the path of the user manager

Flushes all data to the backend

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

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

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 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