pub struct SerialRxSubscription { /* private fields */ }Expand description
The unique RX consumer for one UART runtime.
Implementations§
Source§impl SerialRxSubscription
impl SerialRxSubscription
pub fn drain(&self, out: &mut [RxItem]) -> usize
Sourcepub fn wait_readable(&self) -> RuntimeResult
pub fn wait_readable(&self) -> RuntimeResult
Blocks until RX data is available or the runtime stops.
pub fn discard_pending(&self) -> RuntimeResult
pub fn poll_source(&self) -> Arc<PollSet> ⓘ
Trait Implementations§
Source§impl Drop for SerialRxSubscription
impl Drop for SerialRxSubscription
Auto Trait Implementations§
impl !Freeze for SerialRxSubscription
impl !RefUnwindSafe for SerialRxSubscription
impl !UnwindSafe for SerialRxSubscription
impl Send for SerialRxSubscription
impl Sync for SerialRxSubscription
impl Unpin for SerialRxSubscription
impl UnsafeUnpin for SerialRxSubscription
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