[][src]Enum desk_logind::LogindError

pub enum LogindError {
    NoSessionId {
        backtrace: Backtrace,
    },
    MatchFailed {
        signal: &'static str,
        source: DBusError,
        backtrace: Backtrace,
    },
    DBusError {
        source: DBusError,
        backtrace: Backtrace,
    },
    InhibitorFileError {
        message: String,
        source: Error,
        backtrace: Backtrace,
    },
}

Variants

NoSessionId

Fields of NoSessionId

backtrace: Backtrace
MatchFailed

Fields of MatchFailed

signal: &'static strsource: DBusErrorbacktrace: Backtrace
DBusError

Fields of DBusError

source: DBusErrorbacktrace: Backtrace
InhibitorFileError

Fields of InhibitorFileError

message: Stringsource: Errorbacktrace: Backtrace

Implementations

impl LogindError[src]

pub fn no_session_id() -> LogindError[src]

pub fn match_failed(signal: &'static str, error: DBusError) -> LogindError[src]

pub fn inhibitor_file_error(message: String, error: Error) -> LogindError[src]

Trait Implementations

impl Debug for LogindError[src]

impl Display for LogindError[src]

impl Error for LogindError[src]

impl From<Error> for LogindError[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> From<T> for T[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.