Struct hdlc::SpecialChars [−][src]
Special Character structure for holding the encode and decode values
Default
FEND = 0x7E; FESC = 0x7D; TFEND = 0x5E; TFESC = 0x5D;
Fields
fend: u8
Frame END. Byte that marks the beginning and end of a packet
fesc: u8
Frame ESCape. Byte that marks the start of a swap byte
tfend: u8
Trade Frame END. Byte that is substituted for the FEND byte
tfesc: u8
Trade Frame ESCape. Byte that is substituted for the FESC byte
Methods
impl SpecialChars
[src]
impl SpecialChars
pub fn new(fend: u8, fesc: u8, tfend: u8, tfesc: u8) -> SpecialChars
[src]
pub fn new(fend: u8, fesc: u8, tfend: u8, tfesc: u8) -> SpecialChars
Creates a new SpecialChars structure for encoding/decoding a packet
Trait Implementations
impl Debug for SpecialChars
[src]
impl Debug for SpecialChars
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 Default for SpecialChars
[src]
impl Default for SpecialChars
fn default() -> SpecialChars
[src]
fn default() -> SpecialChars
Creates the default SpecialChars structure for encoding/decoding a packet
Auto Trait Implementations
impl Send for SpecialChars
impl Send for SpecialChars
impl Sync for SpecialChars
impl Sync for SpecialChars