pub struct ImagesMetadata { /* private fields */ }
Expand description
The metadata for all the images of the OTA, arranged by how the system-updater would write them to the paver.
Implementations§
Source§impl ImagesMetadata
impl ImagesMetadata
Sourcepub fn verify(&self, mode: UpdateMode) -> Result<(), VerifyError>
pub fn verify(&self, mode: UpdateMode) -> Result<(), VerifyError>
Verify that this image package manifest is appropriate for the given update mode.
UpdateMode::Normal
- a non-recovery kernel image is required.UpdateMode::ForceRecovery
- a non-recovery kernel image must not be present.
Sourcepub fn fuchsia(&self) -> Option<&ZbiAndOptionalVbmetaMetadata>
pub fn fuchsia(&self) -> Option<&ZbiAndOptionalVbmetaMetadata>
Returns an immutable borrow to the boot slot image package designated as “fuchsia” in this image packages manifest.
Sourcepub fn recovery(&self) -> Option<&ZbiAndOptionalVbmetaMetadata>
pub fn recovery(&self) -> Option<&ZbiAndOptionalVbmetaMetadata>
Returns an immutable borrow to the boot slot image package designated as “recovery” in this image packages manifest.
Sourcepub fn firmware(&self) -> &BTreeMap<String, ImageMetadata>
pub fn firmware(&self) -> &BTreeMap<String, ImageMetadata>
Returns an immutable borrow to the boot slot image package designated as “firmware” in this image packages manifest.
Trait Implementations§
Source§impl Clone for ImagesMetadata
impl Clone for ImagesMetadata
Source§fn clone(&self) -> ImagesMetadata
fn clone(&self) -> ImagesMetadata
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ImagesMetadata
impl Debug for ImagesMetadata
Source§impl From<ImagePackagesManifest> for ImagesMetadata
impl From<ImagePackagesManifest> for ImagesMetadata
Source§fn from(manifest: ImagePackagesManifest) -> Self
fn from(manifest: ImagePackagesManifest) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ImagesMetadata
impl PartialEq for ImagesMetadata
impl Eq for ImagesMetadata
impl StructuralPartialEq for ImagesMetadata
Auto Trait Implementations§
impl Freeze for ImagesMetadata
impl RefUnwindSafe for ImagesMetadata
impl Send for ImagesMetadata
impl Sync for ImagesMetadata
impl Unpin for ImagesMetadata
impl UnwindSafe for ImagesMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)