Trait Command

Source
pub trait Command:
    TryFrom<u8>
    + PartialEq<u8>
    + Copy
    + Sealed {
    // Required method
    fn command(&self) -> u8;
}
Available on crate feature binary only.
Expand description

Types that can be used as a command code in a Binary message.

Required Methods§

Source

fn command(&self) -> u8

Get the value of the command as a u8.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Command for u8

Source§

fn command(&self) -> u8

Implementors§

Source§

impl Command for Activate

Source§

impl Command for ConvertToAscii

Source§

impl Command for EchoData

Source§

impl Command for Error

Source§

impl Command for Home

Source§

impl Command for LimitActive

Source§

impl Command for ManualMove

Source§

impl Command for ManualMoveTracking

Source§

impl Command for MoveAbsolute

Source§

impl Command for MoveAtConstantSpeed

Source§

impl Command for MoveIndex

Source§

impl Command for MoveRelative

Source§

impl Command for MoveToStoredPosition

Source§

impl Command for MoveTracking

Source§

impl Command for ReadAllDigitalInputs

Source§

impl Command for ReadAllDigitalOutputs

Source§

impl Command for ReadAnalogInput

Source§

impl Command for ReadDigitalInput

Source§

impl Command for ReadDigitalOutput

Source§

impl Command for Renumber

Source§

impl Command for Reset

Source§

impl Command for RestoreSettings

Source§

impl Command for ReturnAnalogInputCount

Source§

impl Command for ReturnCalibratedEncoderCount

Source§

impl Command for ReturnCalibrationError

Source§

impl Command for ReturnCalibrationType

Source§

impl Command for ReturnCurrentPosition

Source§

impl Command for ReturnDeviceId

Source§

impl Command for ReturnDigitalInputCount

Source§

impl Command for ReturnDigitalOutputCount

Source§

impl Command for ReturnEncoderCount

Source§

impl Command for ReturnEncoderPosition

Source§

impl Command for ReturnFirmwareBuild

Source§

impl Command for ReturnFirmwareVersion

Source§

impl Command for ReturnPendingPeripheralId

Source§

impl Command for ReturnPendingPeripheralSerialNumber

Source§

impl Command for ReturnPeripheralSerialNumber

Source§

impl Command for ReturnPowerSupplyVoltage

Source§

impl Command for ReturnSerialNumber

Source§

impl Command for ReturnSetting

Source§

impl Command for ReturnStatus

Source§

impl Command for ReturnStoredPosition

Source§

impl Command for SetAcceleration

Source§

impl Command for SetAccelerationOnly

Source§

impl Command for SetAliasNumber

Source§

impl Command for SetAutoHomeDisabledMode

Source§

impl Command for SetAutoReplyDisabledMode

Source§

impl Command for SetBaudRate

Source§

impl Command for SetClosedLoopMode

Source§

impl Command for SetCurrentPosition

Source§

impl Command for SetCycleDistance

Source§

impl Command for SetDecelerationOnly

Source§

impl Command for SetDeviceMode

Source§

impl Command for SetFilterHolderId

Source§

impl Command for SetHoldCurrent

Source§

impl Command for SetHomeOffset

Source§

impl Command for SetHomeSensorType

Source§

impl Command for SetHomeSpeed

Source§

impl Command for SetHomeStatus

Source§

impl Command for SetIndexDistance

Source§

impl Command for SetKnobDirection

Source§

impl Command for SetKnobDisabledMode

Source§

impl Command for SetKnobJogSize

Source§

impl Command for SetKnobMovementMode

Source§

impl Command for SetKnobVelocityProfile

Source§

impl Command for SetKnobVelocityScale

Source§

impl Command for SetManualMoveTrackingDisabledMode

Source§

impl Command for SetMaximumPosition

Source§

impl Command for SetMessageIdMode

Source§

impl Command for SetMicrostepResolution

Source§

impl Command for SetMinimumPosition

Source§

impl Command for SetMoveTrackingMode

Source§

impl Command for SetMoveTrackingPeriod

Source§

impl Command for SetParkState

Source§

impl Command for SetPeripheralId

Source§

impl Command for SetProtocol

Source§

impl Command for SetRunCurrent

Source§

impl Command for SetSlipTrackingPeriod

Source§

impl Command for SetStallTimeout

Source§

impl Command for SetTargetSpeed

Source§

impl Command for SlipTracking

Source§

impl Command for Stop

Source§

impl Command for StoreCurrentPosition

Source§

impl Command for UnexpectedPosition

Source§

impl Command for WriteAllDigitalOutputs

Source§

impl Command for WriteDigitalOutput