Struct logind_zbus::manager::ManagerProxy

source ·
pub struct ManagerProxy<'p>(/* private fields */);

Implementations§

source§

impl<'p> ManagerProxy<'p>

source

pub async fn new(conn: &Connection) -> Result<ManagerProxy<'p>>

Creates a new proxy with the default service and path.

source

pub fn builder(conn: &Connection) -> Builder<'p, Self>

Returns a customizable builder for this proxy.

source

pub fn into_inner(self) -> Proxy<'p>

Consumes self, returning the underlying zbus::Proxy.

source

pub fn inner(&self) -> &Proxy<'p>

The reference to the underlying zbus::Proxy.

source

pub fn inner_mut(&mut self) -> &mut Proxy<'p>

The mutable reference to the underlying zbus::Proxy.

source

pub async fn activate_session(&self, session_id: &str) -> Result<()>

ActivateSession method

source

pub async fn activate_session_on_seat( &self, session_id: &str, seat_id: &str ) -> Result<()>

ActivateSessionOnSeat method

source

pub async fn attach_device( &self, seat_id: &str, sysfs_path: &str, interactive: bool ) -> Result<()>

AttachDevice method

source

pub async fn can_halt(&self) -> Result<IsSupported>

CanHalt method

source

pub async fn can_hibernate(&self) -> Result<IsSupported>

CanHibernate method

source

pub async fn can_hybrid_sleep(&self) -> Result<IsSupported>

CanHybridSleep method

source

pub async fn can_power_off(&self) -> Result<IsSupported>

CanPowerOff method

source

pub async fn can_reboot(&self) -> Result<IsSupported>

CanReboot method

source

pub async fn can_reboot_parameter(&self) -> Result<IsSupported>

CanRebootParameter method

source

pub async fn can_reboot_to_boot_loader_entry(&self) -> Result<IsSupported>

CanRebootToBootLoaderEntry method

source

pub async fn can_reboot_to_boot_loader_menu(&self) -> Result<IsSupported>

CanRebootToBootLoaderMenu method

source

pub async fn can_reboot_to_firmware_setup(&self) -> Result<IsSupported>

CanRebootToFirmwareSetup method

source

pub async fn can_suspend(&self) -> Result<IsSupported>

CanSuspend method

source

pub async fn can_suspend_then_hibernate(&self) -> Result<IsSupported>

CanSuspendThenHibernate method

source

pub async fn cancel_scheduled_shutdown(&self) -> Result<bool>

CancelScheduledShutdown method

source

pub async fn flush_devices(&self, interactive: bool) -> Result<()>

FlushDevices method

source

pub async fn get_seat(&self, seat_id: &str) -> Result<OwnedObjectPath>

GetSeat method

source

pub async fn get_session(&self, session_id: &str) -> Result<OwnedObjectPath>

GetSession method

source

pub async fn get_session_by_PID(&self, pid: u32) -> Result<OwnedObjectPath>

GetSessionByPID method

source

pub async fn get_user(&self, uid: u32) -> Result<OwnedObjectPath>

GetUser method

source

pub async fn get_user_by_PID(&self, pid: u32) -> Result<OwnedObjectPath>

GetUserByPID method

source

pub async fn halt(&self, interactive: bool) -> Result<()>

Halt method

source

pub async fn hibernate(&self, interactive: bool) -> Result<()>

Hibernate method

source

pub async fn hybrid_sleep(&self, interactive: bool) -> Result<()>

HybridSleep method

source

pub async fn inhibit( &self, what: InhibitType, who: &str, why: &str, mode: &str ) -> Result<OwnedFd>

Inhibit method

source

pub async fn kill_session( &self, session_id: &str, who: &str, signal_number: i32 ) -> Result<()>

KillSession method

source

pub async fn kill_user(&self, uid: u32, signal_number: i32) -> Result<()>

KillUser method

source

pub async fn list_inhibitors(&self) -> Result<Vec<Inhibitor>>

ListInhibitors method

source

pub async fn list_seats(&self) -> Result<Vec<SomePath>>

ListSeats method

source

pub async fn list_sessions(&self) -> Result<Vec<SessionInfo>>

ListSessions method

source

pub async fn list_users(&self) -> Result<Vec<UserInfo>>

ListUsers method

source

pub async fn lock_session(&self, session_id: &str) -> Result<()>

LockSession method

source

pub async fn lock_sessions(&self) -> Result<()>

LockSessions method

source

pub async fn power_off(&self, interactive: bool) -> Result<()>

PowerOff method

source

pub async fn reboot(&self, interactive: bool) -> Result<()>

Reboot method

source

pub async fn release_session(&self, session_id: &str) -> Result<()>

ReleaseSession method

source

pub async fn schedule_shutdown(&self, shutdown: ScheduledShutdown) -> Result<()>

ScheduleShutdown method

source

pub async fn set_reboot_parameter(&self, parameter: &str) -> Result<()>

SetRebootParameter method

source

pub async fn set_reboot_to_boot_loader_entry( &self, boot_loader_entry: &str ) -> Result<()>

SetRebootToBootLoaderEntry method

source

pub async fn set_reboot_to_boot_loader_menu(&self, timeout: u64) -> Result<()>

SetRebootToBootLoaderMenu method

source

pub async fn set_reboot_to_firmware_setup(&self, enable: bool) -> Result<()>

SetRebootToFirmwareSetup method

source

pub async fn set_user_linger( &self, uid: u32, enable: bool, interactive: bool ) -> Result<()>

SetUserLinger method

source

pub async fn set_wall_message( &self, wall_message: &str, enable: bool ) -> Result<()>

SetWallMessage method

source

pub async fn suspend(&self, interactive: bool) -> Result<()>

Suspend method

source

pub async fn suspend_then_hibernate(&self, interactive: bool) -> Result<()>

SuspendThenHibernate method

source

pub async fn terminate_seat(&self, seat_id: &str) -> Result<()>

TerminateSeat method

source

pub async fn terminate_session(&self, session_id: &str) -> Result<()>

TerminateSession method

source

pub async fn terminate_user(&self, uid: u32) -> Result<()>

TerminateUser method

source

pub async fn unlock_session(&self, session_id: &str) -> Result<()>

UnlockSession method

source

pub async fn unlock_sessions(&self) -> Result<()>

UnlockSessions method

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

pub async fn block_inhibited(&self) -> Result<String>

BlockInhibited property

source

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.

source

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.

source

pub async fn boot_loader_entries(&self) -> Result<Vec<String>>

BootLoaderEntries property

source

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.

source

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.

source

pub async fn delay_inhibited(&self) -> Result<String>

DelayInhibited property

source

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.

source

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.

source

pub async fn docked(&self) -> Result<bool>

Docked property

source

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.

source

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.

source

pub async fn enable_wall_messages(&self) -> Result<bool>

EnableWallMessages property

source

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.

source

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.

source

pub async fn set_enable_wall_messages(&self, value: bool) -> Result<()>

source

pub async fn handle_hibernate_key(&self) -> Result<String>

HandleHibernateKey property

source

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.

source

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.

source

pub async fn handle_lid_switch(&self) -> Result<String>

HandleLidSwitch property

source

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.

source

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.

source

pub async fn handle_lid_switch_docked(&self) -> Result<String>

HandleLidSwitchDocked property

source

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.

source

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.

source

pub async fn handle_lid_switch_external_power(&self) -> Result<String>

HandleLidSwitchExternalPower property

source

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.

source

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.

source

pub async fn handle_power_key(&self) -> Result<String>

HandlePowerKey property

source

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.

source

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.

source

pub async fn handle_suspend_key(&self) -> Result<String>

HandleSuspendKey property

source

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.

source

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.

source

pub async fn holdoff_timeout_USec(&self) -> Result<u64>

HoldoffTimeoutUSec property

source

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.

source

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.

source

pub async fn idle_action(&self) -> Result<String>

IdleAction property

source

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.

source

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.

source

pub async fn idle_action_USec(&self) -> Result<u64>

IdleActionUSec property

source

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.

source

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.

source

pub async fn idle_hint(&self) -> Result<bool>

IdleHint property

source

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.

source

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.

source

pub async fn idle_since_hint(&self) -> Result<u64>

IdleSinceHint property

source

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.

source

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.

source

pub async fn idle_since_hint_monotonic(&self) -> Result<u64>

IdleSinceHintMonotonic property

source

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.

source

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.

source

pub async fn inhibit_delay_max_USec(&self) -> Result<u64>

InhibitDelayMaxUSec property

source

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.

source

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.

source

pub async fn inhibitors_max(&self) -> Result<u64>

InhibitorsMax property

source

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.

source

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.

source

pub async fn kill_exclude_users(&self) -> Result<Vec<String>>

KillExcludeUsers property

source

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.

source

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.

source

pub async fn kill_only_users(&self) -> Result<Vec<String>>

KillOnlyUsers property

source

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.

source

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.

source

pub async fn kill_user_processes(&self) -> Result<bool>

KillUserProcesses property

source

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.

source

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.

source

pub async fn lid_closed(&self) -> Result<bool>

LidClosed property

source

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.

source

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.

source

pub async fn NAuto_VTs(&self) -> Result<u32>

NAutoVTs property

source

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.

source

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.

source

pub async fn NCurrent_inhibitors(&self) -> Result<u64>

NCurrentInhibitors property

source

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.

source

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.

source

pub async fn NCurrent_sessions(&self) -> Result<u64>

NCurrentSessions property

source

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.

source

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.

source

pub async fn on_external_power(&self) -> Result<bool>

OnExternalPower property

source

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.

source

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.

source

pub async fn preparing_for_shutdown(&self) -> Result<bool>

PreparingForShutdown property

source

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.

source

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.

source

pub async fn preparing_for_sleep(&self) -> Result<bool>

PreparingForSleep property

source

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.

source

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.

source

pub async fn reboot_parameter(&self) -> Result<String>

RebootParameter property

source

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.

source

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.

source

pub async fn reboot_to_boot_loader_entry(&self) -> Result<String>

RebootToBootLoaderEntry property

source

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.

source

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.

source

pub async fn reboot_to_boot_loader_menu(&self) -> Result<u64>

RebootToBootLoaderMenu property

source

pub fn cached_reboot_to_boot_loader_menu( &self ) -> Result<Option<<Result<u64> as ResultAdapter>::Ok>, <Result<u64> as ResultAdapter>::Err>

Get the cached value of the RebootToBootLoaderMenu property, or None if the property is not cached.

source

pub async fn receive_reboot_to_boot_loader_menu_changed( &self ) -> PropertyStream<'p, <Result<u64> as ResultAdapter>::Ok>

Create a stream for the RebootToBootLoaderMenu property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

source

pub async fn reboot_to_firmware_setup(&self) -> Result<bool>

RebootToFirmwareSetup property

source

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.

source

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.

source

pub async fn remove_IPC(&self) -> Result<bool>

RemoveIPC property

source

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.

source

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.

source

pub async fn runtime_directory_inodes_max(&self) -> Result<u64>

RuntimeDirectoryInodesMax property

source

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.

source

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.

source

pub async fn runtime_directory_size(&self) -> Result<u64>

RuntimeDirectorySize property

source

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.

source

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.

source

pub async fn scheduled_shutdown(&self) -> Result<ScheduledShutdown>

ScheduledShutdown property

source

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.

source

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.

source

pub async fn sessions_max(&self) -> Result<u64>

SessionsMax property

source

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.

source

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.

source

pub async fn user_stop_delay_USec(&self) -> Result<u64>

UserStopDelayUSec property

source

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.

source

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.

source

pub async fn wall_message(&self) -> Result<String>

WallMessage property

source

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.

source

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>

source§

fn as_mut(&mut self) -> &mut Proxy<'p>

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<'p> AsRef<Proxy<'p>> for ManagerProxy<'p>

source§

fn as_ref(&self) -> &Proxy<'p>

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<'p> Clone for ManagerProxy<'p>

source§

fn clone(&self) -> ManagerProxy<'p>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'p> Debug for ManagerProxy<'p>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'p> From<Proxy<'p>> for ManagerProxy<'p>

source§

fn from(proxy: Proxy<'p>) -> Self

Converts to this type from the input type.
source§

impl<'a> ProxyDefault for ManagerProxy<'a>

source§

const INTERFACE: Option<&'static str> = _

source§

const DESTINATION: Option<&'static str> = _

source§

const PATH: Option<&'static str> = _

source§

impl<'p> ProxyImpl<'p> for ManagerProxy<'p>

source§

fn builder(conn: &Connection) -> Builder<'p, Self>

Returns a customizable builder for this proxy.
source§

fn into_inner(self) -> Proxy<'p>

Consumes self, returning the underlying zbus::Proxy.
source§

fn inner(&self) -> &Proxy<'p>

The reference to the underlying zbus::Proxy.
source§

impl<'p> Serialize for ManagerProxy<'p>

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'p> Type for ManagerProxy<'p>

source§

fn signature() -> Signature<'static>

Get the signature for the implementing type. Read more

Auto Trait Implementations§

§

impl<'p> Freeze for ManagerProxy<'p>

§

impl<'p> !RefUnwindSafe for ManagerProxy<'p>

§

impl<'p> Send for ManagerProxy<'p>

§

impl<'p> Sync for ManagerProxy<'p>

§

impl<'p> Unpin for ManagerProxy<'p>

§

impl<'p> !UnwindSafe for ManagerProxy<'p>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynamicType for T
where T: Type + ?Sized,

source§

fn dynamic_signature(&self) -> Signature<'_>

Get the signature for the implementing type. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more