esp_idf_svc::handle

Trait RawHandle

Source
pub trait RawHandle {
    type Handle;

    // Required method
    fn handle(&self) -> Self::Handle;
}

Required Associated Types§

Required Methods§

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.

Implementations on Foreign Types§

Source§

impl<R> RawHandle for &R
where R: RawHandle,

Source§

type Handle = <R as RawHandle>::Handle

Source§

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

Source§

impl<R> RawHandle for &mut R
where R: RawHandle,

Source§

type Handle = <R as RawHandle>::Handle

Source§

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

Implementors§