esp_hal::uart

Trait Instance

Source
pub trait Instance:
    Peripheral<P = Self>
    + Into<AnyUart>
    + 'static {
    // Required method
    fn parts(&self) -> (&'static Info, &'static State);

    // Provided methods
    fn info(&self) -> &'static Info { ... }
    fn state(&self) -> &'static State { ... }
}
Expand description

UART Peripheral Instance

Required Methods§

Source

fn parts(&self) -> (&'static Info, &'static State)

Returns the peripheral data and state describing this UART instance.

Provided Methods§

Source

fn info(&self) -> &'static Info

Returns the peripheral data describing this UART instance.

Source

fn state(&self) -> &'static State

Returns the peripheral state for this UART instance.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§