#[repr(transparent)]pub struct Config(pub u32);
Expand description
Configuration of parity and hardware flow control
Tuple Fields§
§0: u32
Implementations§
Source§impl Config
impl Config
Sourcepub const fn parity(&self) -> ConfigParity
pub const fn parity(&self) -> ConfigParity
Parity
Sourcepub fn set_parity(&mut self, val: ConfigParity)
pub fn set_parity(&mut self, val: ConfigParity)
Parity
Sourcepub const fn paritytype(&self) -> Paritytype
pub const fn paritytype(&self) -> Paritytype
Even or odd parity type
Sourcepub fn set_paritytype(&mut self, val: Paritytype)
pub fn set_paritytype(&mut self, val: Paritytype)
Even or odd parity type
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)