pub struct SqliteStateStore { /* private fields */ }Expand description
Per-(upstream_name, subject) state store backed by SQLite.
The load method uses take_upstream_oauth_state (atomic DELETE … RETURNING)
rather than a SELECT, consuming the row on first read. delete is a no-op.
Implementations§
Trait Implementations§
Source§impl StateStore for SqliteStateStore
impl StateStore for SqliteStateStore
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
csrf_token: &'life1 str,
state: StoredAuthorizationState,
) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
csrf_token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<StoredAuthorizationState>, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
_csrf_token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for SqliteStateStore
impl RefUnwindSafe for SqliteStateStore
impl Send for SqliteStateStore
impl Sync for SqliteStateStore
impl Unpin for SqliteStateStore
impl UnsafeUnpin for SqliteStateStore
impl UnwindSafe for SqliteStateStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more