Struct ImageHeaders
pub(crate) struct ImageHeaders {
offsets: HeaderOffsets,
image_seq: u32,
}Expand description
Checks that the EC headers of an image agree with the flash and with each other.
Fields§
§offsets: HeaderOffsetsOffsets that every EC header must have.
image_seq: u32The first image sequence number other than 0. Like the kernel, it is required in all blocks, but 0 from older tools is accepted.
Implementations§
§impl ImageHeaders
impl ImageHeaders
pub(crate) const fn new(offsets: HeaderOffsets) -> Self
Trait Implementations§
§impl Clone for ImageHeaders
impl Clone for ImageHeaders
§fn clone(&self) -> ImageHeaders
fn clone(&self) -> ImageHeaders
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ImageHeaders
Auto Trait Implementations§
impl Freeze for ImageHeaders
impl RefUnwindSafe for ImageHeaders
impl Send for ImageHeaders
impl Sync for ImageHeaders
impl Unpin for ImageHeaders
impl UnsafeUnpin for ImageHeaders
impl UnwindSafe for ImageHeaders
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