Struct logind_zbus::manager::ManagerProxy
source · pub struct ManagerProxy<'p>(/* private fields */);
Implementations§
source§impl<'p> ManagerProxy<'p>
impl<'p> ManagerProxy<'p>
sourcepub async fn new(conn: &Connection) -> Result<ManagerProxy<'p>>
pub async fn new(conn: &Connection) -> Result<ManagerProxy<'p>>
Creates a new proxy with the default service and path.
sourcepub fn builder(conn: &Connection) -> Builder<'p, Self>
pub fn builder(conn: &Connection) -> Builder<'p, Self>
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
.
sourcepub async fn activate_session(&self, session_id: &str) -> Result<()>
pub async fn activate_session(&self, session_id: &str) -> Result<()>
ActivateSession method
sourcepub async fn activate_session_on_seat(
&self,
session_id: &str,
seat_id: &str
) -> Result<()>
pub async fn activate_session_on_seat( &self, session_id: &str, seat_id: &str ) -> Result<()>
ActivateSessionOnSeat method
sourcepub async fn attach_device(
&self,
seat_id: &str,
sysfs_path: &str,
interactive: bool
) -> Result<()>
pub async fn attach_device( &self, seat_id: &str, sysfs_path: &str, interactive: bool ) -> Result<()>
AttachDevice method
sourcepub async fn can_halt(&self) -> Result<IsSupported>
pub async fn can_halt(&self) -> Result<IsSupported>
CanHalt method
sourcepub async fn can_hibernate(&self) -> Result<IsSupported>
pub async fn can_hibernate(&self) -> Result<IsSupported>
CanHibernate method
sourcepub async fn can_hybrid_sleep(&self) -> Result<IsSupported>
pub async fn can_hybrid_sleep(&self) -> Result<IsSupported>
CanHybridSleep method
sourcepub async fn can_power_off(&self) -> Result<IsSupported>
pub async fn can_power_off(&self) -> Result<IsSupported>
CanPowerOff method
sourcepub async fn can_reboot(&self) -> Result<IsSupported>
pub async fn can_reboot(&self) -> Result<IsSupported>
CanReboot method
sourcepub async fn can_reboot_parameter(&self) -> Result<IsSupported>
pub async fn can_reboot_parameter(&self) -> Result<IsSupported>
CanRebootParameter method
sourcepub async fn can_reboot_to_boot_loader_entry(&self) -> Result<IsSupported>
pub async fn can_reboot_to_boot_loader_entry(&self) -> Result<IsSupported>
CanRebootToBootLoaderEntry method
CanRebootToBootLoaderMenu method
sourcepub async fn can_reboot_to_firmware_setup(&self) -> Result<IsSupported>
pub async fn can_reboot_to_firmware_setup(&self) -> Result<IsSupported>
CanRebootToFirmwareSetup method
sourcepub async fn can_suspend(&self) -> Result<IsSupported>
pub async fn can_suspend(&self) -> Result<IsSupported>
CanSuspend method
sourcepub async fn can_suspend_then_hibernate(&self) -> Result<IsSupported>
pub async fn can_suspend_then_hibernate(&self) -> Result<IsSupported>
CanSuspendThenHibernate method
sourcepub async fn cancel_scheduled_shutdown(&self) -> Result<bool>
pub async fn cancel_scheduled_shutdown(&self) -> Result<bool>
CancelScheduledShutdown method
sourcepub async fn flush_devices(&self, interactive: bool) -> Result<()>
pub async fn flush_devices(&self, interactive: bool) -> Result<()>
FlushDevices method
sourcepub async fn get_seat(&self, seat_id: &str) -> Result<OwnedObjectPath>
pub async fn get_seat(&self, seat_id: &str) -> Result<OwnedObjectPath>
GetSeat method
sourcepub async fn get_session(&self, session_id: &str) -> Result<OwnedObjectPath>
pub async fn get_session(&self, session_id: &str) -> Result<OwnedObjectPath>
GetSession method
sourcepub async fn get_session_by_PID(&self, pid: u32) -> Result<OwnedObjectPath>
pub async fn get_session_by_PID(&self, pid: u32) -> Result<OwnedObjectPath>
GetSessionByPID method
sourcepub async fn get_user(&self, uid: u32) -> Result<OwnedObjectPath>
pub async fn get_user(&self, uid: u32) -> Result<OwnedObjectPath>
GetUser method
sourcepub async fn get_user_by_PID(&self, pid: u32) -> Result<OwnedObjectPath>
pub async fn get_user_by_PID(&self, pid: u32) -> Result<OwnedObjectPath>
GetUserByPID method
sourcepub async fn hybrid_sleep(&self, interactive: bool) -> Result<()>
pub async fn hybrid_sleep(&self, interactive: bool) -> Result<()>
HybridSleep method
sourcepub async fn inhibit(
&self,
what: InhibitType,
who: &str,
why: &str,
mode: &str
) -> Result<OwnedFd>
pub async fn inhibit( &self, what: InhibitType, who: &str, why: &str, mode: &str ) -> Result<OwnedFd>
Inhibit method
sourcepub async fn kill_session(
&self,
session_id: &str,
who: &str,
signal_number: i32
) -> Result<()>
pub async fn kill_session( &self, session_id: &str, who: &str, signal_number: i32 ) -> Result<()>
KillSession method
sourcepub async fn list_inhibitors(&self) -> Result<Vec<Inhibitor>>
pub async fn list_inhibitors(&self) -> Result<Vec<Inhibitor>>
ListInhibitors method
sourcepub async fn list_seats(&self) -> Result<Vec<SomePath>>
pub async fn list_seats(&self) -> Result<Vec<SomePath>>
ListSeats method
sourcepub async fn list_sessions(&self) -> Result<Vec<SessionInfo>>
pub async fn list_sessions(&self) -> Result<Vec<SessionInfo>>
ListSessions method
sourcepub async fn list_users(&self) -> Result<Vec<UserInfo>>
pub async fn list_users(&self) -> Result<Vec<UserInfo>>
ListUsers method
sourcepub async fn lock_session(&self, session_id: &str) -> Result<()>
pub async fn lock_session(&self, session_id: &str) -> Result<()>
LockSession method
sourcepub async fn lock_sessions(&self) -> Result<()>
pub async fn lock_sessions(&self) -> Result<()>
LockSessions method
sourcepub async fn release_session(&self, session_id: &str) -> Result<()>
pub async fn release_session(&self, session_id: &str) -> Result<()>
ReleaseSession method
sourcepub async fn schedule_shutdown(&self, shutdown: ScheduledShutdown) -> Result<()>
pub async fn schedule_shutdown(&self, shutdown: ScheduledShutdown) -> Result<()>
ScheduleShutdown method
sourcepub async fn set_reboot_parameter(&self, parameter: &str) -> Result<()>
pub async fn set_reboot_parameter(&self, parameter: &str) -> Result<()>
SetRebootParameter method
sourcepub async fn set_reboot_to_boot_loader_entry(
&self,
boot_loader_entry: &str
) -> Result<()>
pub async fn set_reboot_to_boot_loader_entry( &self, boot_loader_entry: &str ) -> Result<()>
SetRebootToBootLoaderEntry method
SetRebootToBootLoaderMenu method
sourcepub async fn set_reboot_to_firmware_setup(&self, enable: bool) -> Result<()>
pub async fn set_reboot_to_firmware_setup(&self, enable: bool) -> Result<()>
SetRebootToFirmwareSetup method
sourcepub async fn set_user_linger(
&self,
uid: u32,
enable: bool,
interactive: bool
) -> Result<()>
pub async fn set_user_linger( &self, uid: u32, enable: bool, interactive: bool ) -> Result<()>
SetUserLinger method
sourcepub async fn set_wall_message(
&self,
wall_message: &str,
enable: bool
) -> Result<()>
pub async fn set_wall_message( &self, wall_message: &str, enable: bool ) -> Result<()>
SetWallMessage method
sourcepub async fn suspend_then_hibernate(&self, interactive: bool) -> Result<()>
pub async fn suspend_then_hibernate(&self, interactive: bool) -> Result<()>
SuspendThenHibernate method
sourcepub async fn terminate_seat(&self, seat_id: &str) -> Result<()>
pub async fn terminate_seat(&self, seat_id: &str) -> Result<()>
TerminateSeat method
sourcepub async fn terminate_session(&self, session_id: &str) -> Result<()>
pub async fn terminate_session(&self, session_id: &str) -> Result<()>
TerminateSession method
sourcepub async fn terminate_user(&self, uid: u32) -> Result<()>
pub async fn terminate_user(&self, uid: u32) -> Result<()>
TerminateUser method
sourcepub async fn unlock_session(&self, session_id: &str) -> Result<()>
pub async fn unlock_session(&self, session_id: &str) -> Result<()>
UnlockSession method
sourcepub async fn unlock_sessions(&self) -> Result<()>
pub async fn unlock_sessions(&self) -> Result<()>
UnlockSessions method
sourcepub async fn receive_prepare_for_shutdown(
&self
) -> Result<PrepareForShutdownStream<'static>>
pub async fn receive_prepare_for_shutdown( &self ) -> Result<PrepareForShutdownStream<'static>>
Create a stream that receives PrepareForShutdown
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
PrepareForShutdown signal
sourcepub async fn receive_prepare_for_shutdown_with_args(
&self,
args: &[(u8, &str)]
) -> Result<PrepareForShutdownStream<'static>>
pub async fn receive_prepare_for_shutdown_with_args( &self, args: &[(u8, &str)] ) -> Result<PrepareForShutdownStream<'static>>
Create a stream that receives PrepareForShutdown
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
PrepareForShutdown signal
sourcepub async fn receive_prepare_for_sleep(
&self
) -> Result<PrepareForSleepStream<'static>>
pub async fn receive_prepare_for_sleep( &self ) -> Result<PrepareForSleepStream<'static>>
Create a stream that receives PrepareForSleep
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
PrepareForSleep signal
sourcepub async fn receive_prepare_for_sleep_with_args(
&self,
args: &[(u8, &str)]
) -> Result<PrepareForSleepStream<'static>>
pub async fn receive_prepare_for_sleep_with_args( &self, args: &[(u8, &str)] ) -> Result<PrepareForSleepStream<'static>>
Create a stream that receives PrepareForSleep
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
PrepareForSleep signal
sourcepub async fn receive_seat_new(&self) -> Result<SeatNewStream<'static>>
pub async fn receive_seat_new(&self) -> Result<SeatNewStream<'static>>
Create a stream that receives SeatNew
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
SeatNew signal
sourcepub async fn receive_seat_new_with_args(
&self,
args: &[(u8, &str)]
) -> Result<SeatNewStream<'static>>
pub async fn receive_seat_new_with_args( &self, args: &[(u8, &str)] ) -> Result<SeatNewStream<'static>>
Create a stream that receives SeatNew
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
SeatNew signal
sourcepub async fn receive_seat_removed(&self) -> Result<SeatRemovedStream<'static>>
pub async fn receive_seat_removed(&self) -> Result<SeatRemovedStream<'static>>
Create a stream that receives SeatRemoved
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
SeatRemoved signal
sourcepub async fn receive_seat_removed_with_args(
&self,
args: &[(u8, &str)]
) -> Result<SeatRemovedStream<'static>>
pub async fn receive_seat_removed_with_args( &self, args: &[(u8, &str)] ) -> Result<SeatRemovedStream<'static>>
Create a stream that receives SeatRemoved
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
SeatRemoved signal
sourcepub async fn receive_session_new(&self) -> Result<SessionNewStream<'static>>
pub async fn receive_session_new(&self) -> Result<SessionNewStream<'static>>
Create a stream that receives SessionNew
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
SessionNew signal
sourcepub async fn receive_session_new_with_args(
&self,
args: &[(u8, &str)]
) -> Result<SessionNewStream<'static>>
pub async fn receive_session_new_with_args( &self, args: &[(u8, &str)] ) -> Result<SessionNewStream<'static>>
Create a stream that receives SessionNew
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
SessionNew signal
sourcepub async fn receive_session_removed(
&self
) -> Result<SessionRemovedStream<'static>>
pub async fn receive_session_removed( &self ) -> Result<SessionRemovedStream<'static>>
Create a stream that receives SessionRemoved
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
SessionRemoved signal
sourcepub async fn receive_session_removed_with_args(
&self,
args: &[(u8, &str)]
) -> Result<SessionRemovedStream<'static>>
pub async fn receive_session_removed_with_args( &self, args: &[(u8, &str)] ) -> Result<SessionRemovedStream<'static>>
Create a stream that receives SessionRemoved
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
SessionRemoved signal
sourcepub async fn receive_user_new(&self) -> Result<UserNewStream<'static>>
pub async fn receive_user_new(&self) -> Result<UserNewStream<'static>>
Create a stream that receives UserNew
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
UserNew signal
sourcepub async fn receive_user_new_with_args(
&self,
args: &[(u8, &str)]
) -> Result<UserNewStream<'static>>
pub async fn receive_user_new_with_args( &self, args: &[(u8, &str)] ) -> Result<UserNewStream<'static>>
Create a stream that receives UserNew
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
UserNew signal
sourcepub async fn receive_user_removed(&self) -> Result<UserRemovedStream<'static>>
pub async fn receive_user_removed(&self) -> Result<UserRemovedStream<'static>>
Create a stream that receives UserRemoved
signals.
This a convenient wrapper around zbus::Proxy::receive_signal
.
UserRemoved signal
sourcepub async fn receive_user_removed_with_args(
&self,
args: &[(u8, &str)]
) -> Result<UserRemovedStream<'static>>
pub async fn receive_user_removed_with_args( &self, args: &[(u8, &str)] ) -> Result<UserRemovedStream<'static>>
Create a stream that receives UserRemoved
signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args
.
UserRemoved signal
sourcepub async fn block_inhibited(&self) -> Result<String>
pub async fn block_inhibited(&self) -> Result<String>
BlockInhibited property
sourcepub fn cached_block_inhibited(
&self
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_block_inhibited( &self ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the BlockInhibited
property, or None
if the property is not cached.
sourcepub async fn receive_block_inhibited_changed(
&self
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_block_inhibited_changed( &self ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the BlockInhibited
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn boot_loader_entries(&self) -> Result<Vec<String>>
pub async fn boot_loader_entries(&self) -> Result<Vec<String>>
BootLoaderEntries property
sourcepub fn cached_boot_loader_entries(
&self
) -> Result<Option<<Result<Vec<String>> as ResultAdapter>::Ok>, <Result<Vec<String>> as ResultAdapter>::Err>
pub fn cached_boot_loader_entries( &self ) -> Result<Option<<Result<Vec<String>> as ResultAdapter>::Ok>, <Result<Vec<String>> as ResultAdapter>::Err>
Get the cached value of the BootLoaderEntries
property, or None
if the property is not cached.
sourcepub async fn receive_boot_loader_entries_changed(
&self
) -> PropertyStream<'p, <Result<Vec<String>> as ResultAdapter>::Ok>
pub async fn receive_boot_loader_entries_changed( &self ) -> PropertyStream<'p, <Result<Vec<String>> as ResultAdapter>::Ok>
Create a stream for the BootLoaderEntries
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn delay_inhibited(&self) -> Result<String>
pub async fn delay_inhibited(&self) -> Result<String>
DelayInhibited property
sourcepub fn cached_delay_inhibited(
&self
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_delay_inhibited( &self ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the DelayInhibited
property, or None
if the property is not cached.
sourcepub async fn receive_delay_inhibited_changed(
&self
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_delay_inhibited_changed( &self ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the DelayInhibited
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub fn cached_docked(
&self
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_docked( &self ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Get the cached value of the Docked
property, or None
if the property is not cached.
sourcepub async fn receive_docked_changed(
&self
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_docked_changed( &self ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the Docked
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn enable_wall_messages(&self) -> Result<bool>
pub async fn enable_wall_messages(&self) -> Result<bool>
EnableWallMessages property
sourcepub fn cached_enable_wall_messages(
&self
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_enable_wall_messages( &self ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Get the cached value of the EnableWallMessages
property, or None
if the property is not cached.
sourcepub async fn receive_enable_wall_messages_changed(
&self
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_enable_wall_messages_changed( &self ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the EnableWallMessages
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
pub async fn set_enable_wall_messages(&self, value: bool) -> Result<()>
sourcepub async fn handle_hibernate_key(&self) -> Result<String>
pub async fn handle_hibernate_key(&self) -> Result<String>
HandleHibernateKey property
sourcepub fn cached_handle_hibernate_key(
&self
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_handle_hibernate_key( &self ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the HandleHibernateKey
property, or None
if the property is not cached.
sourcepub async fn receive_handle_hibernate_key_changed(
&self
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_handle_hibernate_key_changed( &self ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the HandleHibernateKey
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn handle_lid_switch(&self) -> Result<String>
pub async fn handle_lid_switch(&self) -> Result<String>
HandleLidSwitch property
sourcepub fn cached_handle_lid_switch(
&self
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_handle_lid_switch( &self ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the HandleLidSwitch
property, or None
if the property is not cached.
sourcepub async fn receive_handle_lid_switch_changed(
&self
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_handle_lid_switch_changed( &self ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the HandleLidSwitch
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn handle_lid_switch_docked(&self) -> Result<String>
pub async fn handle_lid_switch_docked(&self) -> Result<String>
HandleLidSwitchDocked property
sourcepub fn cached_handle_lid_switch_docked(
&self
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_handle_lid_switch_docked( &self ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the HandleLidSwitchDocked
property, or None
if the property is not cached.
sourcepub async fn receive_handle_lid_switch_docked_changed(
&self
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_handle_lid_switch_docked_changed( &self ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the HandleLidSwitchDocked
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn handle_lid_switch_external_power(&self) -> Result<String>
pub async fn handle_lid_switch_external_power(&self) -> Result<String>
HandleLidSwitchExternalPower property
sourcepub fn cached_handle_lid_switch_external_power(
&self
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_handle_lid_switch_external_power( &self ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the HandleLidSwitchExternalPower
property, or None
if the property is not cached.
sourcepub async fn receive_handle_lid_switch_external_power_changed(
&self
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_handle_lid_switch_external_power_changed( &self ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the HandleLidSwitchExternalPower
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn handle_power_key(&self) -> Result<String>
pub async fn handle_power_key(&self) -> Result<String>
HandlePowerKey property
sourcepub fn cached_handle_power_key(
&self
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_handle_power_key( &self ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the HandlePowerKey
property, or None
if the property is not cached.
sourcepub async fn receive_handle_power_key_changed(
&self
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_handle_power_key_changed( &self ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the HandlePowerKey
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn handle_suspend_key(&self) -> Result<String>
pub async fn handle_suspend_key(&self) -> Result<String>
HandleSuspendKey property
sourcepub fn cached_handle_suspend_key(
&self
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_handle_suspend_key( &self ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the HandleSuspendKey
property, or None
if the property is not cached.
sourcepub async fn receive_handle_suspend_key_changed(
&self
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_handle_suspend_key_changed( &self ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the HandleSuspendKey
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn holdoff_timeout_USec(&self) -> Result<u64>
pub async fn holdoff_timeout_USec(&self) -> Result<u64>
HoldoffTimeoutUSec property
sourcepub fn cached_holdoff_timeout_USec(
&self
) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
pub fn cached_holdoff_timeout_USec( &self ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
Get the cached value of the HoldoffTimeoutUSec
property, or None
if the property is not cached.
sourcepub async fn receive_holdoff_timeout_USec_changed(
&self
) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
pub async fn receive_holdoff_timeout_USec_changed( &self ) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
Create a stream for the HoldoffTimeoutUSec
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn idle_action(&self) -> Result<String>
pub async fn idle_action(&self) -> Result<String>
IdleAction property
sourcepub fn cached_idle_action(
&self
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_idle_action( &self ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the IdleAction
property, or None
if the property is not cached.
sourcepub async fn receive_idle_action_changed(
&self
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_idle_action_changed( &self ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the IdleAction
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn idle_action_USec(&self) -> Result<u64>
pub async fn idle_action_USec(&self) -> Result<u64>
IdleActionUSec property
sourcepub fn cached_idle_action_USec(
&self
) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
pub fn cached_idle_action_USec( &self ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
Get the cached value of the IdleActionUSec
property, or None
if the property is not cached.
sourcepub async fn receive_idle_action_USec_changed(
&self
) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
pub async fn receive_idle_action_USec_changed( &self ) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
Create a stream for the IdleActionUSec
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub fn cached_idle_hint(
&self
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_idle_hint( &self ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Get the cached value of the IdleHint
property, or None
if the property is not cached.
sourcepub async fn receive_idle_hint_changed(
&self
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_idle_hint_changed( &self ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the IdleHint
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn idle_since_hint(&self) -> Result<u64>
pub async fn idle_since_hint(&self) -> Result<u64>
IdleSinceHint property
sourcepub fn cached_idle_since_hint(
&self
) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
pub fn cached_idle_since_hint( &self ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
Get the cached value of the IdleSinceHint
property, or None
if the property is not cached.
sourcepub async fn receive_idle_since_hint_changed(
&self
) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
pub async fn receive_idle_since_hint_changed( &self ) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
Create a stream for the IdleSinceHint
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn idle_since_hint_monotonic(&self) -> Result<u64>
pub async fn idle_since_hint_monotonic(&self) -> Result<u64>
IdleSinceHintMonotonic property
sourcepub fn cached_idle_since_hint_monotonic(
&self
) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
pub fn cached_idle_since_hint_monotonic( &self ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
Get the cached value of the IdleSinceHintMonotonic
property, or None
if the property is not cached.
sourcepub async fn receive_idle_since_hint_monotonic_changed(
&self
) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
pub async fn receive_idle_since_hint_monotonic_changed( &self ) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
Create a stream for the IdleSinceHintMonotonic
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn inhibit_delay_max_USec(&self) -> Result<u64>
pub async fn inhibit_delay_max_USec(&self) -> Result<u64>
InhibitDelayMaxUSec property
sourcepub fn cached_inhibit_delay_max_USec(
&self
) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
pub fn cached_inhibit_delay_max_USec( &self ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
Get the cached value of the InhibitDelayMaxUSec
property, or None
if the property is not cached.
sourcepub async fn receive_inhibit_delay_max_USec_changed(
&self
) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
pub async fn receive_inhibit_delay_max_USec_changed( &self ) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
Create a stream for the InhibitDelayMaxUSec
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn inhibitors_max(&self) -> Result<u64>
pub async fn inhibitors_max(&self) -> Result<u64>
InhibitorsMax property
sourcepub fn cached_inhibitors_max(
&self
) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
pub fn cached_inhibitors_max( &self ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
Get the cached value of the InhibitorsMax
property, or None
if the property is not cached.
sourcepub async fn receive_inhibitors_max_changed(
&self
) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
pub async fn receive_inhibitors_max_changed( &self ) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
Create a stream for the InhibitorsMax
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn kill_exclude_users(&self) -> Result<Vec<String>>
pub async fn kill_exclude_users(&self) -> Result<Vec<String>>
KillExcludeUsers property
sourcepub fn cached_kill_exclude_users(
&self
) -> Result<Option<<Result<Vec<String>> as ResultAdapter>::Ok>, <Result<Vec<String>> as ResultAdapter>::Err>
pub fn cached_kill_exclude_users( &self ) -> Result<Option<<Result<Vec<String>> as ResultAdapter>::Ok>, <Result<Vec<String>> as ResultAdapter>::Err>
Get the cached value of the KillExcludeUsers
property, or None
if the property is not cached.
sourcepub async fn receive_kill_exclude_users_changed(
&self
) -> PropertyStream<'p, <Result<Vec<String>> as ResultAdapter>::Ok>
pub async fn receive_kill_exclude_users_changed( &self ) -> PropertyStream<'p, <Result<Vec<String>> as ResultAdapter>::Ok>
Create a stream for the KillExcludeUsers
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn kill_only_users(&self) -> Result<Vec<String>>
pub async fn kill_only_users(&self) -> Result<Vec<String>>
KillOnlyUsers property
sourcepub fn cached_kill_only_users(
&self
) -> Result<Option<<Result<Vec<String>> as ResultAdapter>::Ok>, <Result<Vec<String>> as ResultAdapter>::Err>
pub fn cached_kill_only_users( &self ) -> Result<Option<<Result<Vec<String>> as ResultAdapter>::Ok>, <Result<Vec<String>> as ResultAdapter>::Err>
Get the cached value of the KillOnlyUsers
property, or None
if the property is not cached.
sourcepub async fn receive_kill_only_users_changed(
&self
) -> PropertyStream<'p, <Result<Vec<String>> as ResultAdapter>::Ok>
pub async fn receive_kill_only_users_changed( &self ) -> PropertyStream<'p, <Result<Vec<String>> as ResultAdapter>::Ok>
Create a stream for the KillOnlyUsers
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn kill_user_processes(&self) -> Result<bool>
pub async fn kill_user_processes(&self) -> Result<bool>
KillUserProcesses property
sourcepub fn cached_kill_user_processes(
&self
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_kill_user_processes( &self ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Get the cached value of the KillUserProcesses
property, or None
if the property is not cached.
sourcepub async fn receive_kill_user_processes_changed(
&self
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_kill_user_processes_changed( &self ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the KillUserProcesses
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn lid_closed(&self) -> Result<bool>
pub async fn lid_closed(&self) -> Result<bool>
LidClosed property
sourcepub fn cached_lid_closed(
&self
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_lid_closed( &self ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Get the cached value of the LidClosed
property, or None
if the property is not cached.
sourcepub async fn receive_lid_closed_changed(
&self
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_lid_closed_changed( &self ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the LidClosed
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub fn cached_NAuto_VTs(
&self
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_NAuto_VTs( &self ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
Get the cached value of the NAutoVTs
property, or None
if the property is not cached.
sourcepub async fn receive_NAuto_VTs_changed(
&self
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_NAuto_VTs_changed( &self ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
Create a stream for the NAutoVTs
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn NCurrent_inhibitors(&self) -> Result<u64>
pub async fn NCurrent_inhibitors(&self) -> Result<u64>
NCurrentInhibitors property
sourcepub fn cached_NCurrent_inhibitors(
&self
) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
pub fn cached_NCurrent_inhibitors( &self ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
Get the cached value of the NCurrentInhibitors
property, or None
if the property is not cached.
sourcepub async fn receive_NCurrent_inhibitors_changed(
&self
) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
pub async fn receive_NCurrent_inhibitors_changed( &self ) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
Create a stream for the NCurrentInhibitors
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn NCurrent_sessions(&self) -> Result<u64>
pub async fn NCurrent_sessions(&self) -> Result<u64>
NCurrentSessions property
sourcepub fn cached_NCurrent_sessions(
&self
) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
pub fn cached_NCurrent_sessions( &self ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
Get the cached value of the NCurrentSessions
property, or None
if the property is not cached.
sourcepub async fn receive_NCurrent_sessions_changed(
&self
) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
pub async fn receive_NCurrent_sessions_changed( &self ) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
Create a stream for the NCurrentSessions
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn on_external_power(&self) -> Result<bool>
pub async fn on_external_power(&self) -> Result<bool>
OnExternalPower property
sourcepub fn cached_on_external_power(
&self
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_on_external_power( &self ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Get the cached value of the OnExternalPower
property, or None
if the property is not cached.
sourcepub async fn receive_on_external_power_changed(
&self
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_on_external_power_changed( &self ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the OnExternalPower
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn preparing_for_shutdown(&self) -> Result<bool>
pub async fn preparing_for_shutdown(&self) -> Result<bool>
PreparingForShutdown property
sourcepub fn cached_preparing_for_shutdown(
&self
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_preparing_for_shutdown( &self ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Get the cached value of the PreparingForShutdown
property, or None
if the property is not cached.
sourcepub async fn receive_preparing_for_shutdown_changed(
&self
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_preparing_for_shutdown_changed( &self ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the PreparingForShutdown
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn preparing_for_sleep(&self) -> Result<bool>
pub async fn preparing_for_sleep(&self) -> Result<bool>
PreparingForSleep property
sourcepub fn cached_preparing_for_sleep(
&self
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_preparing_for_sleep( &self ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Get the cached value of the PreparingForSleep
property, or None
if the property is not cached.
sourcepub async fn receive_preparing_for_sleep_changed(
&self
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_preparing_for_sleep_changed( &self ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the PreparingForSleep
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn reboot_parameter(&self) -> Result<String>
pub async fn reboot_parameter(&self) -> Result<String>
RebootParameter property
sourcepub fn cached_reboot_parameter(
&self
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_reboot_parameter( &self ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the RebootParameter
property, or None
if the property is not cached.
sourcepub async fn receive_reboot_parameter_changed(
&self
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_reboot_parameter_changed( &self ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the RebootParameter
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn reboot_to_boot_loader_entry(&self) -> Result<String>
pub async fn reboot_to_boot_loader_entry(&self) -> Result<String>
RebootToBootLoaderEntry property
sourcepub fn cached_reboot_to_boot_loader_entry(
&self
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_reboot_to_boot_loader_entry( &self ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the RebootToBootLoaderEntry
property, or None
if the property is not cached.
sourcepub async fn receive_reboot_to_boot_loader_entry_changed(
&self
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_reboot_to_boot_loader_entry_changed( &self ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the RebootToBootLoaderEntry
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
RebootToBootLoaderMenu property
Get the cached value of the RebootToBootLoaderMenu
property, or None
if the property is not cached.
Create a stream for the RebootToBootLoaderMenu
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn reboot_to_firmware_setup(&self) -> Result<bool>
pub async fn reboot_to_firmware_setup(&self) -> Result<bool>
RebootToFirmwareSetup property
sourcepub fn cached_reboot_to_firmware_setup(
&self
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_reboot_to_firmware_setup( &self ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Get the cached value of the RebootToFirmwareSetup
property, or None
if the property is not cached.
sourcepub async fn receive_reboot_to_firmware_setup_changed(
&self
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_reboot_to_firmware_setup_changed( &self ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the RebootToFirmwareSetup
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn remove_IPC(&self) -> Result<bool>
pub async fn remove_IPC(&self) -> Result<bool>
RemoveIPC property
sourcepub fn cached_remove_IPC(
&self
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_remove_IPC( &self ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Get the cached value of the RemoveIPC
property, or None
if the property is not cached.
sourcepub async fn receive_remove_IPC_changed(
&self
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_remove_IPC_changed( &self ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the RemoveIPC
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn runtime_directory_inodes_max(&self) -> Result<u64>
pub async fn runtime_directory_inodes_max(&self) -> Result<u64>
RuntimeDirectoryInodesMax property
sourcepub fn cached_runtime_directory_inodes_max(
&self
) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
pub fn cached_runtime_directory_inodes_max( &self ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
Get the cached value of the RuntimeDirectoryInodesMax
property, or None
if the property is not cached.
sourcepub async fn receive_runtime_directory_inodes_max_changed(
&self
) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
pub async fn receive_runtime_directory_inodes_max_changed( &self ) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
Create a stream for the RuntimeDirectoryInodesMax
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn runtime_directory_size(&self) -> Result<u64>
pub async fn runtime_directory_size(&self) -> Result<u64>
RuntimeDirectorySize property
sourcepub fn cached_runtime_directory_size(
&self
) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
pub fn cached_runtime_directory_size( &self ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
Get the cached value of the RuntimeDirectorySize
property, or None
if the property is not cached.
sourcepub async fn receive_runtime_directory_size_changed(
&self
) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
pub async fn receive_runtime_directory_size_changed( &self ) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
Create a stream for the RuntimeDirectorySize
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn scheduled_shutdown(&self) -> Result<ScheduledShutdown>
pub async fn scheduled_shutdown(&self) -> Result<ScheduledShutdown>
ScheduledShutdown property
sourcepub fn cached_scheduled_shutdown(
&self
) -> Result<Option<<Result<ScheduledShutdown> as ResultAdapter>::Ok>, <Result<ScheduledShutdown> as ResultAdapter>::Err>
pub fn cached_scheduled_shutdown( &self ) -> Result<Option<<Result<ScheduledShutdown> as ResultAdapter>::Ok>, <Result<ScheduledShutdown> as ResultAdapter>::Err>
Get the cached value of the ScheduledShutdown
property, or None
if the property is not cached.
sourcepub async fn receive_scheduled_shutdown_changed(
&self
) -> PropertyStream<'p, <Result<ScheduledShutdown> as ResultAdapter>::Ok>
pub async fn receive_scheduled_shutdown_changed( &self ) -> PropertyStream<'p, <Result<ScheduledShutdown> as ResultAdapter>::Ok>
Create a stream for the ScheduledShutdown
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn sessions_max(&self) -> Result<u64>
pub async fn sessions_max(&self) -> Result<u64>
SessionsMax property
sourcepub fn cached_sessions_max(
&self
) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
pub fn cached_sessions_max( &self ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
Get the cached value of the SessionsMax
property, or None
if the property is not cached.
sourcepub async fn receive_sessions_max_changed(
&self
) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
pub async fn receive_sessions_max_changed( &self ) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
Create a stream for the SessionsMax
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn user_stop_delay_USec(&self) -> Result<u64>
pub async fn user_stop_delay_USec(&self) -> Result<u64>
UserStopDelayUSec property
sourcepub fn cached_user_stop_delay_USec(
&self
) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
pub fn cached_user_stop_delay_USec( &self ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>
Get the cached value of the UserStopDelayUSec
property, or None
if the property is not cached.
sourcepub async fn receive_user_stop_delay_USec_changed(
&self
) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
pub async fn receive_user_stop_delay_USec_changed( &self ) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>
Create a stream for the UserStopDelayUSec
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn wall_message(&self) -> Result<String>
pub async fn wall_message(&self) -> Result<String>
WallMessage property
sourcepub fn cached_wall_message(
&self
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_wall_message( &self ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the WallMessage
property, or None
if the property is not cached.
sourcepub async fn receive_wall_message_changed(
&self
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_wall_message_changed( &self ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the WallMessage
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for ManagerProxy<'p>
impl<'p> AsMut<Proxy<'p>> for ManagerProxy<'p>
source§impl<'p> AsRef<Proxy<'p>> for ManagerProxy<'p>
impl<'p> AsRef<Proxy<'p>> for ManagerProxy<'p>
source§impl<'p> Clone for ManagerProxy<'p>
impl<'p> Clone for ManagerProxy<'p>
source§fn clone(&self) -> ManagerProxy<'p>
fn clone(&self) -> ManagerProxy<'p>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more