pub struct PrivacySynchronousProxy { /* private fields */ }
Implementations§
source§impl PrivacySynchronousProxy
impl PrivacySynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<PrivacyEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<PrivacyEvent, 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<PrivacySettings, Error>
pub fn watch(&self, ___deadline: Time) -> Result<PrivacySettings, Error>
Notifies of a change in privacy settings.
On a given connection, the server will return immediately if this is the first call made,
or if the settings
value has changed since a previous call. Otherwise, the server will
wait on a value change before returning the new value. This follows the hanging get pattern.
If this call fails, it is considered a fatal error and the channel will be closed.
sourcepub fn set(
&self,
settings: PrivacySettings,
___deadline: Time
) -> Result<PrivacySetResult, Error>
pub fn set( &self, settings: PrivacySettings, ___deadline: Time ) -> Result<PrivacySetResult, Error>
Sets the privacy settings.
Any field not explicitly set in settings
performs a no-op, and will not make any changes.