[][src]Struct hdlc::SpecialChars

pub struct SpecialChars {
    pub fend: u8,
    pub fesc: u8,
    pub tfend: u8,
    pub tfesc: u8,
}

Special Character structure for holding the encode and decode values. IEEE standard values are defined below in Default.

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]

pub fn new(fend: u8, fesc: u8, tfend: u8, tfesc: u8) -> SpecialChars[src]

Creates a new SpecialChars structure for encoding/decoding a packet

Trait Implementations

impl Copy for SpecialChars[src]

impl Default for SpecialChars[src]

fn default() -> SpecialChars[src]

Creates the default SpecialChars structure for encoding/decoding a packet

impl Clone for SpecialChars[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for SpecialChars[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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> 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> Any for T where
    T: 'static + ?Sized
[src]