Struct esp_idf_svc::eventloop::EspEvent
source · pub struct EspEvent<'a> {
pub source: &'static CStr,
pub event_id: i32,
pub payload: Option<&'a c_void>,
}
Fields§
§source: &'static CStr
§event_id: i32
§payload: Option<&'a c_void>
Implementations§
source§impl<'a> EspEvent<'a>
impl<'a> EspEvent<'a>
sourcepub unsafe fn as_payload<P: Copy + Send + 'static>(&self) -> &P
pub unsafe fn as_payload<P: Copy + Send + 'static>(&self) -> &P
§Safety
Care should be taken to only call this function on fetch data that one is certain to be
of type P
sourcepub unsafe fn as_raw_payload(&self, len: usize) -> Option<&[u8]>
pub unsafe fn as_raw_payload(&self, len: usize) -> Option<&[u8]>
§Safety
Care should be taken to only call this function on fetch data that one is certain to be
of length len
Trait Implementations§
source§impl<'a> EspEventDeserializer for EspEvent<'a>
impl<'a> EspEventDeserializer for EspEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for EspEvent<'a>
impl<'a> RefUnwindSafe for EspEvent<'a>
impl<'a> Send for EspEvent<'a>
impl<'a> Sync for EspEvent<'a>
impl<'a> Unpin for EspEvent<'a>
impl<'a> UnwindSafe for EspEvent<'a>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)