Trait embedded_svc::ota::FirmwareInfoLoader

source ·
pub trait FirmwareInfoLoader: ErrorType {
    // Required methods
    fn load(&mut self, buf: &[u8]) -> Result<LoadResult, Self::Error>;
    fn is_loaded(&self) -> bool;
    fn get_info(&self) -> Result<FirmwareInfo, Self::Error>;
}

Required Methods§

source

fn load(&mut self, buf: &[u8]) -> Result<LoadResult, Self::Error>

source

fn is_loaded(&self) -> bool

source

fn get_info(&self) -> Result<FirmwareInfo, Self::Error>

Implementations on Foreign Types§

source§

impl<F> FirmwareInfoLoader for &mut F

source§

fn load(&mut self, buf: &[u8]) -> Result<LoadResult, Self::Error>

source§

fn is_loaded(&self) -> bool

source§

fn get_info(&self) -> Result<FirmwareInfo, Self::Error>

Implementors§