esp_idf_svc::eventloop

Type Alias EspExplicitAsyncSubscription

Source
pub type EspExplicitAsyncSubscription<P> = EspAsyncSubscription<P, User<Explicit>>;

Aliased Type§

struct EspExplicitAsyncSubscription<P> { /* private fields */ }

Implementations

Source§

impl<D, T> EspAsyncSubscription<D, T>

Source

pub fn make_weak(&mut self)

Source

pub async fn recv(&mut self) -> Result<D::Data<'_>, EspError>

Trait Implementations

Source§

impl<D, T> ErrorType for EspAsyncSubscription<D, T>

Source§

impl<D, T> RawHandle for EspAsyncSubscription<D, User<T>>

Source§

type Handle = *mut c_void

Source§

fn handle(&self) -> Self::Handle

Care should be taken to use the returned ESP-IDF driver raw handle only while the driver is still alive, so as to avoid use-after-free errors.
Source§

impl<D, T> Receiver for EspAsyncSubscription<D, T>
where D: EspEventDeserializer + 'static, T: EspEventLoopType + 'static,

Source§

type Data<'a> = <D as EspEventDeserializer>::Data<'a>

Source§

async fn recv(&mut self) -> Result<Self::Data<'_>, Self::Error>