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 consume_prefix(s: &str) -> (&str, Self)
pub fn consume_prefix(s: &str) -> (&str, Self)
Parses the given input and infers the partition name as well as the partition system to which it belongs.
pub fn current_rootfs() -> Result<FotaActive>
pub fn current_rootfs() -> Result<FotaActive>
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.
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for FotaActive
impl Debug for FotaActive
§impl Not for FotaActive
impl Not for FotaActive
§impl PartialEq for FotaActive
impl PartialEq for FotaActive
impl Copy for FotaActive
impl Eq 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 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