#[non_exhaustive]pub enum SessionLifecycleEventType {
Created,
Deleted,
Updated,
Foreground,
Background,
}Expand description
Type of SessionLifecycleEvent received via Client::subscribe_lifecycle.
Values serialize as the dotted JSON strings the CLI sends (e.g.
"session.created").
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.
Created
A new session was created.
Deleted
A session was deleted.
Updated
A session’s metadata was updated (e.g. summary regenerated).
Foreground
A session moved into the foreground.
Background
A session moved into the background.
Trait Implementations§
Source§impl Clone for SessionLifecycleEventType
impl Clone for SessionLifecycleEventType
Source§fn clone(&self) -> SessionLifecycleEventType
fn clone(&self) -> SessionLifecycleEventType
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 SessionLifecycleEventType
impl Debug for SessionLifecycleEventType
Source§impl<'de> Deserialize<'de> for SessionLifecycleEventType
impl<'de> Deserialize<'de> for SessionLifecycleEventType
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 Hash for SessionLifecycleEventType
impl Hash for SessionLifecycleEventType
Source§impl PartialEq for SessionLifecycleEventType
impl PartialEq for SessionLifecycleEventType
Source§fn eq(&self, other: &SessionLifecycleEventType) -> bool
fn eq(&self, other: &SessionLifecycleEventType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SessionLifecycleEventType
impl Eq for SessionLifecycleEventType
impl StructuralPartialEq for SessionLifecycleEventType
Auto Trait Implementations§
impl Freeze for SessionLifecycleEventType
impl RefUnwindSafe for SessionLifecycleEventType
impl Send for SessionLifecycleEventType
impl Sync for SessionLifecycleEventType
impl Unpin for SessionLifecycleEventType
impl UnsafeUnpin for SessionLifecycleEventType
impl UnwindSafe for SessionLifecycleEventType
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