Trait RxChannelAsync

Source
pub trait RxChannelAsync: RxChannelInternal {
    // Provided method
    async fn receive<T: From<u32> + Copy>(
        &mut self,
        data: &mut [T],
    ) -> Result<(), Error>
       where Self: Sized { ... }
}
Available on crate feature unstable only.
Expand description

RX channel in async mode

Provided Methods§

Source

async fn receive<T: From<u32> + Copy>( &mut self, data: &mut [T], ) -> Result<(), Error>
where Self: Sized,

Start receiving a pulse code sequence. The length of sequence cannot exceed the size of the allocated RMT RAM.

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§