Struct esp_idf_svc::ota::EspOta
source · pub struct EspOta(/* private fields */);
Implementations§
source§impl EspOta
impl EspOta
pub fn new() -> Result<Self, EspError>
pub fn get_boot_slot(&self) -> Result<Slot, EspError>
pub fn get_running_slot(&self) -> Result<Slot, EspError>
pub fn get_update_slot(&self) -> Result<Slot, EspError>
pub fn get_last_invalid_slot(&self) -> Result<Option<Slot>, EspError>
pub fn is_factory_reset_supported(&self) -> Result<bool, EspError>
pub fn factory_reset(&mut self) -> Result<(), EspError>
pub fn initiate_update(&mut self) -> Result<EspOtaUpdate<'_>, EspError>
pub fn mark_running_slot_valid(&mut self) -> Result<(), EspError>
pub fn mark_running_slot_invalid_and_reboot(&mut self) -> EspError
Trait Implementations§
source§impl ErrorType for EspOta
impl ErrorType for EspOta
§type Error = EspIOError
type Error = EspIOError
Error type of all the IO operations on this type.