pub struct Reason(pub u32);Expand description
reason for getting a session
The reason may determine in what way a session restores the window management state of associated toplevels.
For example newly launched applications might be launched on the active workspace with restored size and position, while a recovered application might restore additional state such as active workspace and stacking order.
Tuple Fields§
§0: u32Implementations§
Source§impl Reason
impl Reason
Sourcepub const Launch: Self
pub const Launch: Self
an app is newly launched
A new app instance is launched, for example from an app launcher.
Sourcepub const Recover: Self
pub const Recover: Self
an app recovered
An app instance is recovering from for example a compositor or app crash.
Sourcepub const SessionRestore: Self
pub const SessionRestore: Self
an app restored
An app instance is restored, for example part of a restored session, or restored from having been temporarily terminated due to resource constraints.
Trait Implementations§
impl Copy for Reason
impl Eq for Reason
Source§impl Ord for Reason
impl Ord for Reason
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Reason
impl PartialOrd for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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