pub struct DieselCredentialsStore<C: Connection + 'static> { /* private fields */ }
Expand description

Manages creating, updating and fetching SplinterCredentials from the database

Implementations

Creates a new DieselCredentialsStore

Arguments
  • connection_pool: connection pool to the database

Create a new DieselCredentialsStore with write exclusivity enabled.

Write exclusivity is enforced by providing a connection pool that is wrapped in a RwLock. This ensures that there may be only one writer, but many readers.

Arguments
  • connection_pool: read-write lock-guarded connection pool for the database

Trait Implementations

Adds a credential to the underlying storage Read more

Replaces a credential for a user in the underlying storage with new credentials. This assumes that the user has only one credential in storage Read more

Removes a credential from a user from the underlying storage Read more

Fetches a credential for a user Read more

Fetches a credential for a user Read more

Fetches the username for a user by user_id Read more

Fetches user names Read more

Adds a credential to the underlying storage Read more

Replaces a credential for a user in the underlying storage with new credentials. This assumes that the user has only one credential in storage Read more

Removes a credential from a user from the underlying storage Read more

Fetches a credential for a user Read more

Fetches a credential for a user Read more

Fetches the username for a user by user_id Read more

Fetches user names Read more

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

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.

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. Read more

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