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: MonotonicInstant,
) -> Result<SetupEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> 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: MonotonicInstant,
) -> Result<SetupSettings, Error>
pub fn watch( &self, ___deadline: MonotonicInstant, ) -> 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: MonotonicInstant,
) -> Result<SetupSetResult, Error>
pub fn set( &self, settings: &SetupSettings, reboot_device: bool, ___deadline: MonotonicInstant, ) -> 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).
Trait Implementations§
Source§impl Debug for SetupSynchronousProxy
impl Debug for SetupSynchronousProxy
Source§impl SynchronousProxy for SetupSynchronousProxy
impl SynchronousProxy for SetupSynchronousProxy
Source§type Proxy = SetupProxy
type Proxy = SetupProxy
The async proxy for the same protocol.
Source§type Protocol = SetupMarker
type Protocol = SetupMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for SetupSynchronousProxy
impl RefUnwindSafe for SetupSynchronousProxy
impl Send for SetupSynchronousProxy
impl Sync for SetupSynchronousProxy
impl Unpin for SetupSynchronousProxy
impl UnwindSafe for SetupSynchronousProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more