pub struct ProvisioningMonitorSynchronousProxy { /* private fields */ }
Implementations§
source§impl ProvisioningMonitorSynchronousProxy
impl ProvisioningMonitorSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: MonotonicTime,
) -> Result<ProvisioningMonitorEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicTime, ) -> Result<ProvisioningMonitorEvent, 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_progress(
&self,
___deadline: MonotonicTime,
) -> Result<ProvisioningMonitorWatchProgressResult, Error>
pub fn watch_progress( &self, ___deadline: MonotonicTime, ) -> Result<ProvisioningMonitorWatchProgressResult, Error>
Call this method to receive an update on the provisioning progress.
When first called, this method will return immediately with the current status. On subsequent calls, it will block until the status changes.
If provisioning error is encountered, it is returned as a
ProvisionError
. See the documentation for ProvisionError
details on error handling.
Once the method has either returned an identity or indicated a
ProvisionError
, the ProvisioningMonitor will close with ZX_OK
.
Trait Implementations§
source§impl SynchronousProxy for ProvisioningMonitorSynchronousProxy
impl SynchronousProxy for ProvisioningMonitorSynchronousProxy
§type Proxy = ProvisioningMonitorProxy
type Proxy = ProvisioningMonitorProxy
The async proxy for the same protocol.
§type Protocol = ProvisioningMonitorMarker
type Protocol = ProvisioningMonitorMarker
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 ProvisioningMonitorSynchronousProxy
impl RefUnwindSafe for ProvisioningMonitorSynchronousProxy
impl Send for ProvisioningMonitorSynchronousProxy
impl Sync for ProvisioningMonitorSynchronousProxy
impl Unpin for ProvisioningMonitorSynchronousProxy
impl UnwindSafe for ProvisioningMonitorSynchronousProxy
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