Struct knx_rs::header::Header [−][src]
pub struct Header { /* fields omitted */ }
Methods
impl Header
[src]
impl Header
pub fn new(service_type: ServiceType, payload_length: u16) -> Header
[src]
pub fn new(service_type: ServiceType, payload_length: u16) -> Header
Create an Header
pub fn length() -> u8
[src]
pub fn length() -> u8
Return the byte-size of an Header
. Always 0x06.
pub fn knxnet_version() -> u8
[src]
pub fn knxnet_version() -> u8
Return the version
field of a header. Always 0x10 (1.0).
pub fn encode(&self) -> Vec<u8>
[src]
pub fn encode(&self) -> Vec<u8>
Trait Implementations
impl PartialEq for Header
[src]
impl PartialEq for Header
fn eq(&self, other: &Header) -> bool
[src]
fn eq(&self, other: &Header) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Header) -> bool
[src]
fn ne(&self, other: &Header) -> bool
This method tests for !=
.
impl Display for Header
[src]
impl Display for Header
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Debug for Header
[src]
impl Debug for Header