[][src]Struct cqc::hdr::CommHdr

pub struct CommHdr {
    pub remote_app_id: u16,
    pub remote_port: u16,
    pub remote_node: u32,
}

CQC Communication Header

Additional header used to send to which node to send information to. Used in send and EPR commands.

 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          remote_app_id        |         remote_port           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          remote_node                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Field          Length     Meaning
-----          ------     -------
remote_app_id  2 bytes    Remote application ID.
remote_port    2 bytes    Port of the remote node for sending classical
                          control info.
remote_node    4 bytes    IP of the remote node (IPv4).

Fields

remote_app_id: u16remote_port: u16remote_node: u32

Methods

impl CommHdr[src]

pub fn hdr_len() -> u32[src]

pub fn len(&self) -> u32[src]

Trait Implementations

impl PartialEq<CommHdr> for CommHdr[src]

impl Debug for CommHdr[src]

impl Serialize for CommHdr[src]

impl<'de> Deserialize<'de> for CommHdr[src]

Auto Trait Implementations

impl Send for CommHdr

impl Sync for CommHdr

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]