pub enum LogindError {
NoSessionId {
backtrace: Backtrace,
},
MatchFailed {
signal: &'static str,
source: Error,
backtrace: Backtrace,
},
DBusError {
source: Error,
backtrace: Backtrace,
},
InhibitorFileError {
message: String,
source: Error,
backtrace: Backtrace,
},
}Variants§
Implementations§
Source§impl LogindError
impl LogindError
pub fn no_session_id() -> LogindError
pub fn match_failed(signal: &'static str, error: DBusError) -> LogindError
pub fn inhibitor_file_error(message: String, error: Error) -> LogindError
Trait Implementations§
Source§impl Debug for LogindError
impl Debug for LogindError
Source§impl Display for LogindError
impl Display for LogindError
Source§impl Error for LogindError
impl Error for LogindError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
🔬This is a nightly-only experimental API. (
error_generic_member_access)Provides type-based access to context intended for error reports. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !Freeze for LogindError
impl RefUnwindSafe for LogindError
impl Send for LogindError
impl Sync for LogindError
impl Unpin for LogindError
impl UnsafeUnpin for LogindError
impl UnwindSafe for LogindError
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