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) -> &'a P
pub unsafe fn as_payload<P: Copy + Send + 'static>(&self) -> &'a 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 EspEventDeserializer for EspEvent<'_>
impl EspEventDeserializer for EspEvent<'_>
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,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)