Trait wasefire_board_api::platform::update::Api
source · pub trait Api: Support<bool> + Send {
// Required methods
fn metadata() -> Result<Box<[u8]>, Error>;
fn initialize(dry_run: bool) -> Result<(), Error>;
fn process(chunk: &[u8]) -> Result<(), Error>;
fn finalize() -> Result<(), Error>;
}
Available on crate features
internal-api-platform
and api-platform-update
only.Expand description
Platform update interface.
Required Methods§
sourcefn metadata() -> Result<Box<[u8]>, Error>
fn metadata() -> Result<Box<[u8]>, Error>
Returns the metadata of the platform.
This typically contains the version and side (A or B) of the running platform.
Object Safety§
This trait is not object safe.