Struct someip_parse::SomeIpHeader[][src]

pub struct SomeIpHeader {
    pub message_id: u32,
    pub request_id: u32,
    pub interface_version: u8,
    pub message_type: MessageType,
    pub message_type_tp: bool,
    pub return_code: u8,
    // some fields omitted
}

Fields

If true the tp flag in the message type is set (Transporting large SOME/IP messages of UDP [SOME/IP-TP])

Methods

impl SomeIpHeader
[src]

Return the length of the payload based on the length field in the header.

Set the length of the payload (automatically adds 8 bytes).

Returns an error if the given value is bigger then SOMEIP_MAX_PAYLOAD_LEN.

Returns the service id (first 16 bits of the message id)

Set the servide id (first 16 bits of the message id)

Set the event id + the event bit.

Set the event id + the event bit to 0. Asserting method_id <= 0x7FFF (otherwise the )

Sets the event id or method id. This number mjust include the "event bit".

Returns true if the message has the message id of a some ip service discovery message.

Returns true if the event or notification bit in the message id is set

Return the event id or method id. This number includes the "event bit".

Serialize the header.

Read a header from a byte stream.

Trait Implementations

impl Clone for SomeIpHeader
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SomeIpHeader
[src]

Formats the value using the given formatter. Read more

impl Eq for SomeIpHeader
[src]

impl PartialEq for SomeIpHeader
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for SomeIpHeader
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations