Struct avr_oxide::event::OxideEventEnvelope
source · pub struct OxideEventEnvelope<'e> { /* private fields */ }
Expand description
An envelope with a recipient address that we can wrap up Oxide events in.
Implementations§
source§impl<'e> OxideEventEnvelope<'e>
impl<'e> OxideEventEnvelope<'e>
sourcepub fn to(receiver: &'e dyn EventSource, event: OxideEvent) -> Self
pub fn to(receiver: &'e dyn EventSource, event: OxideEvent) -> Self
Wrap an event intended for the given EventSource to process
sourcepub fn anon(event: OxideEvent) -> Self
pub fn anon(event: OxideEvent) -> Self
Wrap an event addressed to nobody in particular
sourcepub fn open_event(&self) -> OxideEvent
pub fn open_event(&self) -> OxideEvent
Return the contents of the envelope (i.e. the event!)
Trait Implementations§
source§impl<'e> Clone for OxideEventEnvelope<'e>
impl<'e> Clone for OxideEventEnvelope<'e>
source§fn clone(&self) -> OxideEventEnvelope<'e>
fn clone(&self) -> OxideEventEnvelope<'e>
Returns a copy 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 moreimpl<'e> Copy for OxideEventEnvelope<'e>
Auto Trait Implementations§
impl<'e> Freeze for OxideEventEnvelope<'e>
impl<'e> !RefUnwindSafe for OxideEventEnvelope<'e>
impl<'e> !Send for OxideEventEnvelope<'e>
impl<'e> !Sync for OxideEventEnvelope<'e>
impl<'e> Unpin for OxideEventEnvelope<'e>
impl<'e> !UnwindSafe for OxideEventEnvelope<'e>
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