pub enum PowerlinkError {
Show 21 variants
BufferTooShort,
IoError,
InvalidEthernetFrame,
InvalidPlFrame,
InvalidMessageType(u8),
InvalidNmtState(u8),
InvalidServiceId(u8),
InvalidRequestedServiceId(u8),
InvalidNodeId(u8),
InvalidPayloadSize(u16),
InvalidEnumValue,
SliceConversion,
FrameTooLarge,
NotReady,
ObjectNotFound,
SubObjectNotFound,
TypeMismatch,
StorageError(&'static str),
ValidationError(&'static str),
SdoSequenceError,
SdoAborted,
}Expand description
Defines a portable, descriptive Error type for the POWERLINK stack.
Variants§
BufferTooShort
The provided buffer is too small for the operation.
IoError
An underlying I/O error occurred.
InvalidEthernetFrame
A received frame is fundamentally invalid (e.g., wrong EtherType, bad message type).
InvalidPlFrame
A received powerlink frame is fundamentally invalid (e.g., too short to contain required headers).
InvalidMessageType(u8)
A value in the frame is not a valid MessageType.
InvalidNmtState(u8)
A value in the frame is not a valid NMT State.
InvalidServiceId(u8)
A value in the frame is not a valid ServiceId.
InvalidRequestedServiceId(u8)
A value in the frame is not a valid RequestedServiceId.
InvalidNodeId(u8)
A value in the frame is not a valid NodeId.
InvalidPayloadSize(u16)
A value in the frame is not a valid PayloadSize.
InvalidEnumValue
A value in a frame is not a valid enum variant.
SliceConversion
A multi-byte value could not be parsed from a slice.
FrameTooLarge
The frame size exceeds the maximum physical or configured MTU.
NotReady
The device is not yet configured or ready to transmit/receive.
ObjectNotFound
The requested Object Dictionary index does not exist.
SubObjectNotFound
The requested sub-index does not exist for the given object.
TypeMismatch
An attempt was made to write a value with an incorrect data type to an object.
StorageError(&'static str)
An error occurred in the storage backend.
ValidationError(&'static str)
A mandatory object was missing from the Object Dictionary during validation.
SdoSequenceError
SDO Sequence number was unexpected (e.g., a lost frame was detected).
SdoAborted
SDO command layer received an abort message.