#[non_exhaustive]pub struct Blocking;Expand description
Marker type signalling that a driver is initialized in blocking mode.
Drivers are constructed in blocking mode by default. To learn about the
differences between blocking and async drivers, see the Async mode
documentation.
Async drivers can be converted to a Blocking driver using the
into_blocking method, for example:
let uart = Uart::new(peripherals.UART0, Config::default())?
.with_rx(peripherals.GPIO1)
.with_tx(peripherals.GPIO2)
.into_async();
let blocking_uart = uart.into_blocking();
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Blocking
impl RefUnwindSafe for Blocking
impl Send for Blocking
impl Sync for Blocking
impl Unpin for Blocking
impl UnwindSafe for Blocking
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