pub struct AecpHeader {
pub message_type: AecpMessageType,
pub status: u8,
pub target_entity_id: EntityId,
pub controller_entity_id: EntityId,
pub sequence_id: u16,
}Expand description
The fields every AECPDU starts with.
Fields§
§message_type: AecpMessageType§status: u8An AemStatus for AEM messages; vendor unique protocols define
their own.
target_entity_id: EntityId§controller_entity_id: EntityId§sequence_id: u16Implementations§
Source§impl AecpHeader
impl AecpHeader
Sourcepub fn decode(bytes: &[u8]) -> Result<(Self, &[u8]), DecodeError>
pub fn decode(bytes: &[u8]) -> Result<(Self, &[u8]), DecodeError>
Decodes the header and returns it with the octets after it, up to the end of the control data (Ethernet padding left out). A control_data_length longer than the frame gives the octets the frame holds, as some entities count octets they do not send; the command’s own decoder checks it has what it needs.
Trait Implementations§
Source§impl Clone for AecpHeader
impl Clone for AecpHeader
impl Copy for AecpHeader
Source§impl Debug for AecpHeader
impl Debug for AecpHeader
Source§impl Default for AecpHeader
impl Default for AecpHeader
impl Eq for AecpHeader
Source§impl PartialEq for AecpHeader
impl PartialEq for AecpHeader
impl StructuralPartialEq for AecpHeader
Auto Trait Implementations§
impl Forget for AecpHeader
impl Freeze for AecpHeader
impl Move for AecpHeader
impl RefUnwindSafe for AecpHeader
impl Send for AecpHeader
impl Sync for AecpHeader
impl Unpin for AecpHeader
impl UnsafeUnpin for AecpHeader
impl UnwindSafe for AecpHeader
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