pub struct NoEncoder;Expand description
Placeholder encoder implementation for motors without encoder feedback.
This struct provides a no-op implementation of the InputPin trait
for use in motor driver configurations that don’t require encoder feedback.
It always returns low state and is used as a type parameter placeholder.
§Example
use motor_driver_hal::NoEncoder;
// Used automatically when creating drivers without encoders
let motor = HBridgeMotorDriver::single_pwm(enable_pin, pwm_channel, 1000);Trait Implementations§
Auto Trait Implementations§
impl Freeze for NoEncoder
impl RefUnwindSafe for NoEncoder
impl Send for NoEncoder
impl Sync for NoEncoder
impl Unpin for NoEncoder
impl UnsafeUnpin for NoEncoder
impl UnwindSafe for NoEncoder
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