pub struct CommitStatusProviderSynchronousProxy { /* private fields */ }
Implementations§
Source§impl CommitStatusProviderSynchronousProxy
impl CommitStatusProviderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<CommitStatusProviderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CommitStatusProviderEvent, 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 is_current_system_committed(
&self,
___deadline: MonotonicInstant,
) -> Result<EventPair, Error>
pub fn is_current_system_committed( &self, ___deadline: MonotonicInstant, ) -> Result<EventPair, Error>
Determines whether the currently booted system is committed, and immediately returns an EventPair.
- If the currently booted system is committed, the
ZX_USER_SIGNAL_0
signal is asserted on the EventPair, e.g. the signal is asserted before the EventPair is returned. - If the commit is pending, no signals are asserted on the EventPair. When the
system is committed,
ZX_USER_SIGNAL_0
is asserted on the EventPair. - If the system fails to commit the currently booted version, the system
will reboot and terminate the component serving [
CommitStatusProvider
], which will assertZX_EVENTPAIR_PEER_CLOSED
. At this point, any remaining EventPairs will observe theZX_EVENTPAIR_PEER_CLOSED
signal.
- response
event
an EventPair with rightsZX_RIGHTS_BASIC
.
Trait Implementations§
Source§impl SynchronousProxy for CommitStatusProviderSynchronousProxy
impl SynchronousProxy for CommitStatusProviderSynchronousProxy
Source§type Proxy = CommitStatusProviderProxy
type Proxy = CommitStatusProviderProxy
The async proxy for the same protocol.
Source§type Protocol = CommitStatusProviderMarker
type Protocol = CommitStatusProviderMarker
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 CommitStatusProviderSynchronousProxy
impl RefUnwindSafe for CommitStatusProviderSynchronousProxy
impl Send for CommitStatusProviderSynchronousProxy
impl Sync for CommitStatusProviderSynchronousProxy
impl Unpin for CommitStatusProviderSynchronousProxy
impl UnwindSafe for CommitStatusProviderSynchronousProxy
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