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

A database-backed OAuthUserSessionStore, powered by diesel.

Implementations

Create a new DieselOAuthUserSessionStore 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 an OAuth session Read more

Updates the OAuth access token and/or refresh token for a session Read more

Removes an OAuth session based on the provided Splinter access token. Read more

Returns the OAuth session for the provided Splinter access token if it exists

Returns the correlation between the given OAuth subject identifier and a Biome user ID if it exists Read more

Returns the list of OAuth users, including the Biome user ID if it exists

Clone into a boxed, dynamically dispatched store

Adds an OAuth session Read more

Updates the OAuth access token and/or refresh token for a session Read more

Removes an OAuth session based on the provided Splinter access token. Read more

Returns the OAuth session for the provided Splinter access token if it exists

Returns the correlation between the given OAuth subject identifier and a Biome user ID if it exists Read more

Returns the list of OAuth users, including the Biome user ID if it exists

Clone into a boxed, dynamically dispatched store

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