#[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();