pub struct SessionLifecycle {
pub state: SessionLifecycleState,
pub cause: SessionChangeCause,
pub session_id: SessionId,
pub previous_session_id: Option<SessionId>,
pub reason: String,
}Expand description
One state of a session’s lifecycle (QarSessionLifecycleInfo), copied out of the library.
Fields§
§state: SessionLifecycleState§cause: SessionChangeCauseWhy the latest move happened; SessionChangeCause::None outside a move.
session_id: SessionIdThe session the app is in now: during SessionLifecycleState::Migrating still the old
one. Compare it with the id the app last saw to tell a new move from an old one.
previous_session_id: Option<SessionId>The session it moved from, on the state that ends a move.
reason: StringText for logs and the operator, never a secret. Empty from
crate::Session::lifecycle.
Trait Implementations§
Source§impl Clone for SessionLifecycle
impl Clone for SessionLifecycle
Source§impl Debug for SessionLifecycle
impl Debug for SessionLifecycle
impl Eq for SessionLifecycle
Source§impl PartialEq for SessionLifecycle
impl PartialEq for SessionLifecycle
impl StructuralPartialEq for SessionLifecycle
Auto Trait Implementations§
impl Freeze for SessionLifecycle
impl RefUnwindSafe for SessionLifecycle
impl Send for SessionLifecycle
impl Sync for SessionLifecycle
impl Unpin for SessionLifecycle
impl UnsafeUnpin for SessionLifecycle
impl UnwindSafe for SessionLifecycle
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