pub struct SdoCommand {
pub header: CommandLayerHeader,
pub data_size: Option<UNSIGNED32>,
pub payload: Vec<u8>,
}Expand description
Represents a complete SDO command layer frame, including the header and payload.
Fields§
§header: CommandLayerHeader§data_size: Option<UNSIGNED32>Data size is only present in Initiate Segmented Transfer frames.
payload: Vec<u8>The payload, which contains command-specific data.
Trait Implementations§
Source§impl Clone for SdoCommand
impl Clone for SdoCommand
Source§impl Codec for SdoCommand
impl Codec for SdoCommand
Source§fn serialize(&self, buffer: &mut [u8]) -> Result<usize, PowerlinkError>
fn serialize(&self, buffer: &mut [u8]) -> Result<usize, PowerlinkError>
Serializes the object into the provided buffer.
Source§fn deserialize(buffer: &[u8]) -> Result<Self, PowerlinkError>
fn deserialize(buffer: &[u8]) -> Result<Self, PowerlinkError>
Deserializes an object from the provided buffer.
Source§impl Debug for SdoCommand
impl Debug for SdoCommand
impl Eq for SdoCommand
Source§impl PartialEq for SdoCommand
impl PartialEq for SdoCommand
impl StructuralPartialEq for SdoCommand
Auto Trait Implementations§
impl Freeze for SdoCommand
impl RefUnwindSafe for SdoCommand
impl Send for SdoCommand
impl Sync for SdoCommand
impl Unpin for SdoCommand
impl UnsafeUnpin for SdoCommand
impl UnwindSafe for SdoCommand
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