#[non_exhaustive]pub struct State {
pub rx_waker: AtomicWaker,
pub tx_waker: AtomicWaker,
pub is_rx_async: AtomicBool,
pub is_tx_async: AtomicBool,
}Expand description
Peripheral state for a UART instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rx_waker: AtomicWakerWaker for the asynchronous RX operations.
tx_waker: AtomicWakerWaker for the asynchronous TX operations.
is_rx_async: AtomicBoolStores whether the TX half is configured for async operation.
is_tx_async: AtomicBoolStores whether the RX half is configured for async operation.
Auto Trait Implementations§
impl !Freeze for State
impl !RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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