Struct UarteConfig
#[repr(transparent)]pub struct UarteConfig(pub u32);Expand description
Configuration of parity and hardware flow control.
Tuple Fields§
§0: u32Implementations§
§impl UarteConfig
impl UarteConfig
pub const fn parity(&self) -> ConfigParity
pub const fn parity(&self) -> ConfigParity
Parity.
pub const fn set_parity(&mut self, val: ConfigParity)
pub const fn set_parity(&mut self, val: ConfigParity)
Parity.
pub const fn stop(&self) -> ConfigStop
pub const fn stop(&self) -> ConfigStop
Stop bits.
pub const fn set_stop(&mut self, val: ConfigStop)
pub const fn set_stop(&mut self, val: ConfigStop)
Stop bits.
Trait Implementations§
§impl Clone for UarteConfig
impl Clone for UarteConfig
§fn clone(&self) -> UarteConfig
fn clone(&self) -> UarteConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UarteConfig
§impl Debug for UarteConfig
impl Debug for UarteConfig
§impl Default for UarteConfig
impl Default for UarteConfig
§fn default() -> UarteConfig
fn default() -> UarteConfig
Returns the “default value” for a type. Read more
impl Eq for UarteConfig
§impl PartialEq for UarteConfig
impl PartialEq for UarteConfig
impl StructuralPartialEq for UarteConfig
Auto Trait Implementations§
impl Freeze for UarteConfig
impl RefUnwindSafe for UarteConfig
impl Send for UarteConfig
impl Sync for UarteConfig
impl Unpin for UarteConfig
impl UnsafeUnpin for UarteConfig
impl UnwindSafe for UarteConfig
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