pub struct LoginManagerProxyBlocking<'p>(/* private fields */);Expand description
Login
DBus interface responsible for shutdown, reboot, suspend, hibernate, etc.
See: https://www.freedesktop.org/software/systemd/man/latest/org.freedesktop.login1.html
Implementations§
Source§impl<'p> LoginManagerProxyBlocking<'p>
impl<'p> LoginManagerProxyBlocking<'p>
Sourcepub fn new(conn: &Connection) -> Result<LoginManagerProxyBlocking<'p>, Error>
pub fn new(conn: &Connection) -> Result<LoginManagerProxyBlocking<'p>, Error>
Creates a new proxy with the default service and path.
Sourcepub fn builder(conn: &Connection) -> Builder<'p, LoginManagerProxyBlocking<'p>>
pub fn builder(conn: &Connection) -> Builder<'p, LoginManagerProxyBlocking<'p>>
Returns a customizable builder for this proxy.
Sourcepub fn into_inner(self) -> Proxy<'p>
pub fn into_inner(self) -> Proxy<'p>
Consumes self, returning the underlying zbus::Proxy.
Sourcepub fn inner_mut(&mut self) -> &mut Proxy<'p>
pub fn inner_mut(&mut self) -> &mut Proxy<'p>
The mutable reference to the underlying zbus::Proxy.
pub fn power_off(&self, interactive: bool) -> Result<(), Error>
pub fn reboot(&self, interactive: bool) -> Result<(), Error>
pub fn suspend(&self, interactive: bool) -> Result<(), Error>
pub fn hibernate(&self, interactive: bool) -> Result<(), Error>
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for LoginManagerProxyBlocking<'p>
impl<'p> AsMut<Proxy<'p>> for LoginManagerProxyBlocking<'p>
Source§impl<'p> AsRef<Proxy<'p>> for LoginManagerProxyBlocking<'p>
impl<'p> AsRef<Proxy<'p>> for LoginManagerProxyBlocking<'p>
Source§impl<'p> Clone for LoginManagerProxyBlocking<'p>
impl<'p> Clone for LoginManagerProxyBlocking<'p>
Source§fn clone(&self) -> LoginManagerProxyBlocking<'p>
fn clone(&self) -> LoginManagerProxyBlocking<'p>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'p> Debug for LoginManagerProxyBlocking<'p>
impl<'p> Debug for LoginManagerProxyBlocking<'p>
Source§impl<'a> Defaults for LoginManagerProxyBlocking<'a>
impl<'a> Defaults for LoginManagerProxyBlocking<'a>
Source§impl<'p> From<Proxy<'p>> for LoginManagerProxyBlocking<'p>
impl<'p> From<Proxy<'p>> for LoginManagerProxyBlocking<'p>
Source§fn from(proxy: Proxy<'p>) -> LoginManagerProxyBlocking<'p>
fn from(proxy: Proxy<'p>) -> LoginManagerProxyBlocking<'p>
Converts to this type from the input type.
Source§impl<'p> ProxyImpl<'p> for LoginManagerProxyBlocking<'p>
impl<'p> ProxyImpl<'p> for LoginManagerProxyBlocking<'p>
Source§fn builder(conn: &Connection) -> Builder<'p, LoginManagerProxyBlocking<'p>>
fn builder(conn: &Connection) -> Builder<'p, LoginManagerProxyBlocking<'p>>
Return a customizable builder for this proxy.
Source§fn into_inner(self) -> Proxy<'p>
fn into_inner(self) -> Proxy<'p>
Consume
self, returning the underlying zbus::Proxy.Source§impl<'p> Serialize for LoginManagerProxyBlocking<'p>
impl<'p> Serialize for LoginManagerProxyBlocking<'p>
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<'p> Freeze for LoginManagerProxyBlocking<'p>
impl<'p> !RefUnwindSafe for LoginManagerProxyBlocking<'p>
impl<'p> Send for LoginManagerProxyBlocking<'p>
impl<'p> Sync for LoginManagerProxyBlocking<'p>
impl<'p> Unpin for LoginManagerProxyBlocking<'p>
impl<'p> !UnwindSafe for LoginManagerProxyBlocking<'p>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more