#[non_exhaustive]pub enum SessionInitType {
Start,
Resume,
}Expand description
Indicates whether a session is being started fresh or resumed.
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.
Trait Implementations§
Source§impl Clone for SessionInitType
impl Clone for SessionInitType
Source§fn clone(&self) -> SessionInitType
fn clone(&self) -> SessionInitType
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 moreSource§impl Debug for SessionInitType
impl Debug for SessionInitType
Source§impl<'de> Deserialize<'de> for SessionInitType
impl<'de> Deserialize<'de> for SessionInitType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SessionInitType
impl Display for SessionInitType
impl Eq for SessionInitType
Source§impl PartialEq for SessionInitType
impl PartialEq for SessionInitType
Source§fn eq(&self, other: &SessionInitType) -> bool
fn eq(&self, other: &SessionInitType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionInitType
impl Serialize for SessionInitType
impl StructuralPartialEq for SessionInitType
Auto Trait Implementations§
impl Freeze for SessionInitType
impl RefUnwindSafe for SessionInitType
impl Send for SessionInitType
impl Sync for SessionInitType
impl Unpin for SessionInitType
impl UnsafeUnpin for SessionInitType
impl UnwindSafe for SessionInitType
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