pub struct PairingSessionStore { /* private fields */ }Implementations§
Source§impl PairingSessionStore
impl PairingSessionStore
pub async fn open(path: &Path) -> Result<Self, PairingError>
pub async fn open_memory() -> Result<Self, PairingError>
pub async fn insert_session( &self, token: &str, profile: &str, device_label: Option<&str>, ttl: Duration, ) -> Result<(), PairingError>
pub async fn lookup_session( &self, token: &str, ) -> Result<Option<SessionRow>, PairingError>
pub async fn expire_sessions(&self) -> Result<usize, PairingError>
Auto Trait Implementations§
impl Freeze for PairingSessionStore
impl !RefUnwindSafe for PairingSessionStore
impl Send for PairingSessionStore
impl Sync for PairingSessionStore
impl Unpin for PairingSessionStore
impl UnsafeUnpin for PairingSessionStore
impl !UnwindSafe for PairingSessionStore
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more