pub enum CommitStatusProviderRequest {
IsCurrentSystemCommitted {
responder: CommitStatusProviderIsCurrentSystemCommittedResponder,
},
}
Expand description
A reporter for whether the currently booted system is committed. When an update is committed, this means:
- The currently booted slot is marked as healthy (e.g. successfully booted).
- The alternate slot (if present) is marked as unbootable.
- The system will not roll back to the previous version of the OS on reboot.
- The previous version of the OS may be garbage collected.
Until the update is committed, the system retains the prior version of the OS. That way, if we discover the newly written version is bad (e.g. it cannot itself update), then the system can fall back to the previous committed version.
Variants§
IsCurrentSystemCommitted
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
.
Fields
Implementations§
Source§impl CommitStatusProviderRequest
impl CommitStatusProviderRequest
pub fn into_is_current_system_committed( self, ) -> Option<CommitStatusProviderIsCurrentSystemCommittedResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommitStatusProviderRequest
impl !RefUnwindSafe for CommitStatusProviderRequest
impl Send for CommitStatusProviderRequest
impl Sync for CommitStatusProviderRequest
impl Unpin for CommitStatusProviderRequest
impl !UnwindSafe for CommitStatusProviderRequest
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