#[non_exhaustive]pub enum Persistence {
ServerDefault,
Ephemeral,
Stored,
}Expand description
How a serving relay (monty-server) treats a session’s state.
A storing relay mints a session ID (Checkout::session_id) that resumes the
session from any process. Local subprocess workers never store anything.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ServerDefault
Whatever the relay does by default.
Ephemeral
Never stored by the relay on its own: no session ID and never parked.
Stored
Parked on idle, drain or disconnect, and resumable by its session ID.
Trait Implementations§
Source§impl Clone for Persistence
impl Clone for Persistence
impl Copy for Persistence
Source§impl Debug for Persistence
impl Debug for Persistence
Source§impl Default for Persistence
impl Default for Persistence
impl Eq for Persistence
Source§impl From<Persistence> for Persistence
impl From<Persistence> for Persistence
Source§fn from(persistence: Persistence) -> Self
fn from(persistence: Persistence) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Persistence
impl PartialEq for Persistence
impl StructuralPartialEq for Persistence
Auto Trait Implementations§
impl Freeze for Persistence
impl RefUnwindSafe for Persistence
impl Send for Persistence
impl Sync for Persistence
impl Unpin for Persistence
impl UnsafeUnpin for Persistence
impl UnwindSafe for Persistence
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