#[repr(u8)]pub enum TimeoutCfg {
Characters = 0,
Idle = 1,
IdleAfterCharacter = 2,
IdleBeforeExtended = 3,
}Variants§
Characters = 0
Flag becomes one after timeout characters are received.
Idle = 1
Flag becomes one when idle for timeout bit clocks.
IdleAfterCharacter = 2
Flag becomes one when idle for timeout bit clocks following the next character.
IdleBeforeExtended = 3
Flag becomes one when idle for at least timeout bit clocks but a new character is detected before extended idle timeout.
Implementations§
Source§impl TimeoutCfg
impl TimeoutCfg
Trait Implementations§
Source§impl Clone for TimeoutCfg
impl Clone for TimeoutCfg
Source§fn clone(&self) -> TimeoutCfg
fn clone(&self) -> TimeoutCfg
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<TimeoutCfg> for u8
impl From<TimeoutCfg> for u8
Source§fn from(val: TimeoutCfg) -> u8
fn from(val: TimeoutCfg) -> u8
Converts to this type from the input type.
Source§impl From<u8> for TimeoutCfg
impl From<u8> for TimeoutCfg
Source§fn from(val: u8) -> TimeoutCfg
fn from(val: u8) -> TimeoutCfg
Converts to this type from the input type.
Source§impl Ord for TimeoutCfg
impl Ord for TimeoutCfg
Source§fn cmp(&self, other: &TimeoutCfg) -> Ordering
fn cmp(&self, other: &TimeoutCfg) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimeoutCfg
impl PartialEq for TimeoutCfg
Source§impl PartialOrd for TimeoutCfg
impl PartialOrd for TimeoutCfg
impl Copy for TimeoutCfg
impl Eq for TimeoutCfg
impl StructuralPartialEq for TimeoutCfg
Auto Trait Implementations§
impl Freeze for TimeoutCfg
impl RefUnwindSafe for TimeoutCfg
impl Send for TimeoutCfg
impl Sync for TimeoutCfg
impl Unpin for TimeoutCfg
impl UnwindSafe for TimeoutCfg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more