pub struct MagnetStatus {
pub detected: bool,
pub too_weak: bool,
pub too_strong: bool,
}Expand description
Status of the magnetic system.
Provides information about magnet detection and field strength.
Fields§
§detected: boolTrue if a magnet is detected by the Hall sensors.
too_weak: boolTrue if the magnetic field is too weak (magnet too far).
too_strong: boolTrue if the magnetic field is too strong (magnet too close).
Trait Implementations§
Source§impl Clone for MagnetStatus
impl Clone for MagnetStatus
Source§fn clone(&self) -> MagnetStatus
fn clone(&self) -> MagnetStatus
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 MagnetStatus
Source§impl Debug for MagnetStatus
impl Debug for MagnetStatus
impl Eq for MagnetStatus
Source§impl PartialEq for MagnetStatus
impl PartialEq for MagnetStatus
Source§fn eq(&self, other: &MagnetStatus) -> bool
fn eq(&self, other: &MagnetStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MagnetStatus
Auto Trait Implementations§
impl Freeze for MagnetStatus
impl RefUnwindSafe for MagnetStatus
impl Send for MagnetStatus
impl Sync for MagnetStatus
impl Unpin for MagnetStatus
impl UnsafeUnpin for MagnetStatus
impl UnwindSafe for MagnetStatus
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