pub struct DoNotDisturbSynchronousProxy { /* private fields */ }
Implementations§
source§impl DoNotDisturbSynchronousProxy
impl DoNotDisturbSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<DoNotDisturbEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<DoNotDisturbEvent, 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<DoNotDisturbSettings, Error>
pub fn watch(&self, ___deadline: Time) -> Result<DoNotDisturbSettings, Error>
Gets the current DoNotDisturbSettings
. Returns immediately on first
call; subsequent calls return when the values change.
If this call fails, it is considered a fatal error and the channel will be closed.
sourcepub fn set(
&self,
settings: DoNotDisturbSettings,
___deadline: Time
) -> Result<DoNotDisturbSetResult, Error>
pub fn set( &self, settings: DoNotDisturbSettings, ___deadline: Time ) -> Result<DoNotDisturbSetResult, Error>
Sets DoNotDisturbSettings
settings. Any field not explicitly set in
the table performs a no-op, and will not make any changes.