Enum FotaActive
pub enum FotaActive {
A,
B,
}Expand description
Represents the active partition (A or B) for FOTA updates.
Variants§
Implementations§
§impl FotaActive
impl FotaActive
pub fn current_rootfs() -> Result<Self>
pub fn current_rootfs() -> Result<Self>
Returns the active partition that’s currently in use.
This function is based on the implementation in libfotainfo, which is
used as a fallback in case we’re unable to load the fota info struct
from the raw data partition.
§Errors
Returns an error if the UBI sysfs entries cannot be read or if the rootfs MTD name is not recognized.
Trait Implementations§
§impl Clone for FotaActive
impl Clone for FotaActive
§fn clone(&self) -> FotaActive
fn clone(&self) -> FotaActive
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FotaActive
§impl Debug for FotaActive
impl Debug for FotaActive
impl Eq for FotaActive
§impl Not for FotaActive
impl Not for FotaActive
§impl PartialEq for FotaActive
impl PartialEq for FotaActive
impl StructuralPartialEq for FotaActive
Auto Trait Implementations§
impl Freeze for FotaActive
impl RefUnwindSafe for FotaActive
impl Send for FotaActive
impl Sync for FotaActive
impl Unpin for FotaActive
impl UnsafeUnpin for FotaActive
impl UnwindSafe for FotaActive
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more