Struct kubos_system::UBootVars
source · [−]pub struct UBootVars { /* private fields */ }
Expand description
A convenience wrapper for fetching UBoot variables used by KubOS
Implementations
sourceimpl UBootVars
impl UBootVars
sourcepub fn new_from_path(path: &str) -> Self
pub fn new_from_path(path: &str) -> Self
Constructor that fetches UBoot vars with a custom path to fw_printenv
sourcepub fn get_u32(&self, name: &str) -> Option<u32>
pub fn get_u32(&self, name: &str) -> Option<u32>
Returns the value of a UBoot variable encoded as a u32
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UBootVars
impl Send for UBootVars
impl Sync for UBootVars
impl Unpin for UBootVars
impl UnwindSafe for UBootVars
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more