Struct open_protocol::header::HeaderBuilder
[−]
[src]
pub struct HeaderBuilder { /* fields omitted */ }
Builder for building a Header.
Methods
impl HeaderBuilder
[src]
fn sof(self, sof: u8) -> Self
fn length(self, length: u16) -> Self
fn version(self, version: u8) -> Self
fn session_id(self, session_id: u8) -> Self
fn ack(self, is_ack: bool) -> Self
fn padding(self, padding: u8) -> Self
fn enc(self, e: u8) -> Self
fn seq(self, seq: u16) -> Self
fn crc(self) -> Result<Header>
Calculate crc16 of the header. And create a Header.
Trait Implementations
impl Default for HeaderBuilder
[src]
fn default() -> HeaderBuilder
Returns the "default value" for a type. Read more