Struct qt_gui::q_session_manager::RestartHint
source · pub struct RestartHint(/* private fields */);
Expand description
This enum type defines the circumstances under which this application wants to be restarted by the session manager. The current values are:
C++ enum: QSessionManager::RestartHint
.
This enum type defines the circumstances under which this application wants to be restarted by the session manager. The current values are:
The default hint is RestartIfRunning
.
Implementations§
source§impl RestartHint
impl RestartHint
sourcepub const RestartIfRunning: RestartHint = _
pub const RestartIfRunning: RestartHint = _
If the application is still running when the session is shut down, it wants to be restarted at the start of the next session. (C++ enum variant: RestartIfRunning = 0
)
sourcepub const RestartAnyway: RestartHint = _
pub const RestartAnyway: RestartHint = _
The application wants to be started at the start of the next session, no matter what. (This is useful for utilities that run just after startup and then quit.) (C++ enum variant: RestartAnyway = 1
)
sourcepub const RestartImmediately: RestartHint = _
pub const RestartImmediately: RestartHint = _
The application wants to be started immediately whenever it is not running. (C++ enum variant: RestartImmediately = 2
)
sourcepub const RestartNever: RestartHint = _
pub const RestartNever: RestartHint = _
The application does not want to be restarted automatically. (C++ enum variant: RestartNever = 3
)
Trait Implementations§
source§impl Clone for RestartHint
impl Clone for RestartHint
source§fn clone(&self) -> RestartHint
fn clone(&self) -> RestartHint
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RestartHint
impl Debug for RestartHint
source§impl From<RestartHint> for c_int
impl From<RestartHint> for c_int
source§fn from(value: RestartHint) -> Self
fn from(value: RestartHint) -> Self
source§impl From<i32> for RestartHint
impl From<i32> for RestartHint
source§impl PartialEq for RestartHint
impl PartialEq for RestartHint
source§fn eq(&self, other: &RestartHint) -> bool
fn eq(&self, other: &RestartHint) -> bool
self
and other
values to be equal, and is used
by ==
.