pub enum RxMessageType {
SdoTx,
SdoRx,
Pdo,
Sync,
Nmt,
Lss,
Guarding,
Emcy,
Unknown,
}Expand description
Enumeration representing the type of a received CANopen message.
This enum is used to classify the different types of CANopen messages that can be received. Each variant corresponds to a specific type of CANopen message, as indicated by the COB-ID (Communication Object Identifier).
Variants§
SdoTx
Service Data Object Transmit (SDO Tx)
Represents an SDO message sent from the server (node) to the client.
SdoRx
Service Data Object Receive (SDO Rx)
Represents an SDO message sent from the client to the server (node).
Pdo
Process Data Object (PDO)
Represents any PDO message or Timestamp with COB-ID in the range 0x100 to 0x57F.
Sync
Synchronization (SYNC)
Represents a SYNC message with COB-ID 0x80.
Nmt
Network Management (NMT)
Represents an NMT message.
Lss
Layer Setting Services (LSS)
Represents an LSS message.
Guarding
Node Guarding
Represents a Node Guarding message.
Emcy
Emergency (EMCY)
Represents an EMCY message.
Unknown
Unknown Message Type
Represents a message type that could not be determined.
Implementations§
Trait Implementations§
Source§impl Clone for RxMessageType
impl Clone for RxMessageType
Source§fn clone(&self) -> RxMessageType
fn clone(&self) -> RxMessageType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RxMessageType
impl Debug for RxMessageType
Source§impl PartialEq for RxMessageType
impl PartialEq for RxMessageType
impl Copy for RxMessageType
impl Eq for RxMessageType
impl StructuralPartialEq for RxMessageType
Auto Trait Implementations§
impl Freeze for RxMessageType
impl RefUnwindSafe for RxMessageType
impl Send for RxMessageType
impl Sync for RxMessageType
impl Unpin for RxMessageType
impl UnwindSafe for RxMessageType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more