[][src]Struct qt_gui::q_session_manager::RestartHint

#[repr(transparent)]
pub struct RestartHint(_);

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.

C++ documentation:

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.

Methods

impl RestartHint[src]

pub fn to_int(&self) -> c_int[src]

impl RestartHint[src]

pub const RestartIfRunning: RestartHint[src]

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)

pub const RestartAnyway: RestartHint[src]

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)

pub const RestartImmediately: RestartHint[src]

The application wants to be started immediately whenever it is not running. (C++ enum variant: RestartImmediately = 2)

pub const RestartNever: RestartHint[src]

The application does not want to be restarted automatically. (C++ enum variant: RestartNever = 3)

Trait Implementations

impl Clone for RestartHint[src]

impl Copy for RestartHint[src]

impl Debug for RestartHint[src]

impl Eq for RestartHint[src]

impl From<RestartHint> for c_int[src]

impl From<i32> for RestartHint[src]

impl PartialEq<RestartHint> for RestartHint[src]

impl StructuralEq for RestartHint[src]

impl StructuralPartialEq for RestartHint[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.