pub struct MeshCoreEvent {
pub event_type: EventType,
pub payload: EventPayload,
pub attributes: HashMap<String, String>,
}Expand description
An event emitted by the reader
Fields§
§event_type: EventTypeEvent type
payload: EventPayloadEvent payload
attributes: HashMap<String, String>Filterable attributes
Implementations§
Source§impl MeshCoreEvent
impl MeshCoreEvent
Sourcepub fn new(event_type: EventType, payload: EventPayload) -> Self
pub fn new(event_type: EventType, payload: EventPayload) -> Self
Create a new event
Trait Implementations§
Source§impl Clone for MeshCoreEvent
impl Clone for MeshCoreEvent
Source§fn clone(&self) -> MeshCoreEvent
fn clone(&self) -> MeshCoreEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MeshCoreEvent
impl RefUnwindSafe for MeshCoreEvent
impl Send for MeshCoreEvent
impl Sync for MeshCoreEvent
impl Unpin for MeshCoreEvent
impl UnsafeUnpin for MeshCoreEvent
impl UnwindSafe for MeshCoreEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more