Struct logind_zbus::Logind[][src]

pub struct Logind<'a> { /* fields omitted */ }

Logind is the main way to communicate with the logind dbus interface.

Interfaces are available for:

  • Manager
  • User
  • Session

Implementations

impl<'a> Logind<'a>[src]

pub fn new() -> Result<Self>[src]

Create a new instance. This also sets up the required dbus connection

pub fn main_interface(&self) -> &ManagerInterface<'a>[src]

Get the main manager interface

pub fn session_interface(
    &self,
    session: &'a SessionInfo
) -> Result<SessionInterface<'_>>
[src]

Get a Session dbus interface for the session ID

pub fn user_interface(&self, user: &'a UserInfo) -> Result<UserInterface<'_>>[src]

Get a User dbus interface for the user ID

Auto Trait Implementations

impl<'a> RefUnwindSafe for Logind<'a>

impl<'a> Send for Logind<'a>

impl<'a> Sync for Logind<'a>

impl<'a> Unpin for Logind<'a>

impl<'a> UnwindSafe for Logind<'a>

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, 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.