#[non_exhaustive]pub struct RxConfig { /* private fields */ }
Expand description
UART Receive part configuration.
Implementations§
Source§impl RxConfig
impl RxConfig
Sourcepub fn with_fifo_full_threshold(self, fifo_full_threshold: u16) -> Self
pub fn with_fifo_full_threshold(self, fifo_full_threshold: u16) -> Self
Assign the given value to the fifo_full_threshold
field.
Sourcepub fn fifo_full_threshold(&self) -> u16
pub fn fifo_full_threshold(&self) -> u16
Threshold level at which the RX FIFO is considered full.
Sourcepub fn with_timeout(self, timeout: u8) -> Self
pub fn with_timeout(self, timeout: u8) -> Self
Assign the given value to the timeout
field.
Sourcepub fn with_timeout_none(self) -> Self
pub fn with_timeout_none(self) -> Self
Set the value of timeout
to None
.
Trait Implementations§
impl Copy for RxConfig
Auto Trait Implementations§
impl Freeze for RxConfig
impl RefUnwindSafe for RxConfig
impl Send for RxConfig
impl Sync for RxConfig
impl Unpin for RxConfig
impl UnwindSafe for RxConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)