pub enum SessionProvider {
Legacy,
OpenTacenta,
}Expand description
Which implementation established the sessions in a state blob.
A session cannot be carried between them: the two derive keys under different labels, so one provider’s session is unreadable by the other. A client restoring state has to know which it is holding before it can decide whether to continue the session or drop it and establish again. That is what this records, and it is step 2 of the migration in decision record 0056.
It lives in the state envelope rather than inside a provider’s own session blob, because the question it answers is which blob to hand to which provider.
Variants§
Legacy
The provider used before this field existed; the default a pre-tag blob restores as.
OpenTacenta
open-tacenta, behind the open-provider feature.
Implementations§
Trait Implementations§
Source§impl Clone for SessionProvider
impl Clone for SessionProvider
Source§fn clone(&self) -> SessionProvider
fn clone(&self) -> SessionProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SessionProvider
Source§impl Debug for SessionProvider
impl Debug for SessionProvider
impl Eq for SessionProvider
Source§impl PartialEq for SessionProvider
impl PartialEq for SessionProvider
Source§fn eq(&self, other: &SessionProvider) -> bool
fn eq(&self, other: &SessionProvider) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionProvider
Auto Trait Implementations§
impl Freeze for SessionProvider
impl RefUnwindSafe for SessionProvider
impl Send for SessionProvider
impl Sync for SessionProvider
impl Unpin for SessionProvider
impl UnsafeUnpin for SessionProvider
impl UnwindSafe for SessionProvider
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