pub struct MotorOffStruct {}Expand description
The sonar switches the current through the stepper motor windings off to save power. The sonar will send an ack message in response. The command timeout should be set to 50 msec. If the sonar is idle (not scanning) for more than 30 seconds then the motor current will automatically turn off. When the user sends any command that involves moving the transducer then the motor current is automatically re-enabled.
Trait Implementations§
Source§impl Clone for MotorOffStruct
impl Clone for MotorOffStruct
Source§fn clone(&self) -> MotorOffStruct
fn clone(&self) -> MotorOffStruct
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 moreSource§impl Debug for MotorOffStruct
impl Debug for MotorOffStruct
Source§impl Default for MotorOffStruct
impl Default for MotorOffStruct
Source§fn default() -> MotorOffStruct
fn default() -> MotorOffStruct
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MotorOffStruct
impl<'de> Deserialize<'de> for MotorOffStruct
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DeserializePayload for MotorOffStruct
impl DeserializePayload for MotorOffStruct
fn deserialize(payload: &[u8]) -> Self
Source§impl PartialEq for MotorOffStruct
impl PartialEq for MotorOffStruct
Source§impl Serialize for MotorOffStruct
impl Serialize for MotorOffStruct
Source§impl SerializePayload for MotorOffStruct
impl SerializePayload for MotorOffStruct
impl StructuralPartialEq for MotorOffStruct
Auto Trait Implementations§
impl Freeze for MotorOffStruct
impl RefUnwindSafe for MotorOffStruct
impl Send for MotorOffStruct
impl Sync for MotorOffStruct
impl Unpin for MotorOffStruct
impl UnwindSafe for MotorOffStruct
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