pub struct SetupSynchronousProxy { /* private fields */ }
Implementations§
source§impl SetupSynchronousProxy
impl SetupSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<SetupEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<SetupEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn watch(&self, ___deadline: Time) -> Result<SetupSettings, Error>
pub fn watch(&self, ___deadline: Time) -> Result<SetupSettings, Error>
Gets the current SetupSettings. Returns immediately on first call; subsequent calls return when the value changes.
If this call fails, it is considered a fatal error and the channel will be closed.
sourcepub fn set(
&self,
settings: SetupSettings,
reboot_device: bool,
___deadline: Time
) -> Result<SetupSetResult, Error>
pub fn set( &self, settings: SetupSettings, reboot_device: bool, ___deadline: Time ) -> Result<SetupSetResult, Error>
Changes the settings specified in SetupSettings. Any field not set in the table will not perform any system operation. An error will be returned if the provided settings is an invalid change (for example, if it is empty).