pub struct PartialStatus<const rx_ready: bool, const tx_ready: bool> { /* private fields */ }Expand description
Builder struct for partial initialization of Status .
Implementations§
Source§impl<const tx_ready: bool> PartialStatus<false, tx_ready>
impl<const tx_ready: bool> PartialStatus<false, tx_ready>
Sourcepub const fn with_rx_ready(&self, value: bool) -> PartialStatus<true, tx_ready>
pub const fn with_rx_ready(&self, value: bool) -> PartialStatus<true, tx_ready>
Does the RX FIFO have data?
Source§impl<const rx_ready: bool> PartialStatus<rx_ready, false>
impl<const rx_ready: bool> PartialStatus<rx_ready, false>
Sourcepub const fn with_tx_ready(&self, value: bool) -> PartialStatus<rx_ready, true>
pub const fn with_tx_ready(&self, value: bool) -> PartialStatus<rx_ready, true>
Does the TX FIFO have data?
Auto Trait Implementations§
impl<const rx_ready: bool, const tx_ready: bool> Freeze for PartialStatus<rx_ready, tx_ready>
impl<const rx_ready: bool, const tx_ready: bool> RefUnwindSafe for PartialStatus<rx_ready, tx_ready>
impl<const rx_ready: bool, const tx_ready: bool> Send for PartialStatus<rx_ready, tx_ready>
impl<const rx_ready: bool, const tx_ready: bool> Sync for PartialStatus<rx_ready, tx_ready>
impl<const rx_ready: bool, const tx_ready: bool> Unpin for PartialStatus<rx_ready, tx_ready>
impl<const rx_ready: bool, const tx_ready: bool> UnwindSafe for PartialStatus<rx_ready, tx_ready>
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