Struct logind_zbus::Logind [−][src]
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]
&self,
session: &'a SessionInfo
) -> Result<SessionInterface<'_>>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,