pub struct AppInfo { /* fields omitted */ }
An application info structure.
This structure is generally ignored by the bootloader and can be used to
implement custom checks. For example, the version
field can be used to
encode the firmware revision and prevent firmware downgrades.
Can be passed to Gbl::from_parts
to create a fully custom GBL container.
Creates a new application info section from its raw components.
Note that these values are basically ignored by the bootloader, but can
be used by the application before initiating a firmware upgrade.
type_
: Type of the application (might be a bitfield).
version
: App version (can be used to prevent firmware downgrades).
capabilities
: Capability bitfield (can be used for anything).
product_id
: A UUID identifying the application.
Returns the application type field.
Returns the app version field.
Returns the capabilities field.
Returns the product ID field.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static