pub struct Format {
pub magic: [u8; 4],
pub max_entries: usize,
}Expand description
What an application must agree with its packer about.
Everything else a bundle needs to describe is in the bundle.
Fields§
§magic: [u8; 4]Four bytes identifying which application a bundle was built for, so that one board rejects another’s update.
It is compiled into the firmware and written by the packer, and it
is the only compatibility check there is: nothing else in a bundle
says which board it belongs to. A project shipping more than one
architecture should therefore vary it — WAT7 against WAT8 —
since an image for the wrong architecture is otherwise a bundle that
installs perfectly and does not boot.
max_entries: usizeMost entries to accept.
A bound on what a single upload can ask the device to write, checked before any entry is walked.
Trait Implementations§
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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