Struct SessionPersistence
pub struct SessionPersistence(Inner);Expand description
Configures how a client’s session is durably persisted across restarts.
Construct it from a backend builder rather than directly: pass a
FilePersistence or TursoPersistence to
ClientBuilder::persistence, or
use none for no persistence (the default).
Tuple Fields§
§0: InnerImplementations§
Source§impl SessionPersistence
impl SessionPersistence
Sourcepub const fn none() -> SessionPersistence
pub const fn none() -> SessionPersistence
No persistence: session state is kept in memory only and discarded on exit.
Trait Implementations§
Source§impl Debug for SessionPersistence
impl Debug for SessionPersistence
Source§impl From<FilePersistence> for SessionPersistence
impl From<FilePersistence> for SessionPersistence
Source§fn from(config: FilePersistence) -> SessionPersistence
fn from(config: FilePersistence) -> SessionPersistence
Converts to this type from the input type.
Source§impl From<TursoPersistence> for SessionPersistence
Available on crate feature turso only.
impl From<TursoPersistence> for SessionPersistence
Available on crate feature
turso only.Source§fn from(config: TursoPersistence) -> SessionPersistence
fn from(config: TursoPersistence) -> SessionPersistence
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SessionPersistence
impl !UnwindSafe for SessionPersistence
impl Freeze for SessionPersistence
impl Send for SessionPersistence
impl Sync for SessionPersistence
impl Unpin for SessionPersistence
impl UnsafeUnpin for SessionPersistence
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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