[][src]Struct gbl::AppInfo

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.

Methods

impl AppInfo
[src]

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.

Parameters

  • 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.

Trait Implementations

impl Clone for AppInfo
[src]

Performs copy-assignment from source. Read more

impl Copy for AppInfo
[src]

impl Debug for AppInfo
[src]

Auto Trait Implementations

impl Send for AppInfo

impl Sync for AppInfo

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]