Enum vex_rt::battery::BatteryError
source · [−]pub enum BatteryError {
BatteryBusy,
Unknown(i32),
}
Expand description
Represents possible errors for battery operations.
Variants
BatteryBusy
Another resource is currently trying to access the battery.
Unknown(i32)
Unknown error.
Trait Implementations
sourceimpl Debug for BatteryError
impl Debug for BatteryError
sourceimpl From<BatteryError> for Error
impl From<BatteryError> for Error
sourcefn from(err: BatteryError) -> Self
fn from(err: BatteryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for BatteryError
impl Send for BatteryError
impl Sync for BatteryError
impl Unpin for BatteryError
impl UnwindSafe for BatteryError
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