[−][src]Struct hdlc::SpecialChars
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(&self) -> 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
impl Send for SpecialChars
impl Sync for SpecialChars
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,