pub struct ExternalEvent { /* private fields */ }Implementations§
Source§impl ExternalEvent
impl ExternalEvent
pub fn mechanical_at( event_id: EventId, kind: ExternalEventKind, at: EventTime, ) -> Self
pub fn mechanical(event_id: EventId, kind: ExternalEventKind) -> Self
pub fn with_payload( event_id: EventId, kind: ExternalEventKind, at: EventTime, payload: EventPayload, ) -> Result<Self, ExternalEventPayloadError>
pub fn context(&self) -> &ExecutionContext
pub fn kind(&self) -> ExternalEventKind
pub fn event_id(&self) -> &EventId
pub fn at(&self) -> EventTime
pub fn payload(&self) -> &EventPayload
Trait Implementations§
Source§impl Clone for ExternalEvent
impl Clone for ExternalEvent
Source§fn clone(&self) -> ExternalEvent
fn clone(&self) -> ExternalEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExternalEvent
impl RefUnwindSafe for ExternalEvent
impl Send for ExternalEvent
impl Sync for ExternalEvent
impl Unpin for ExternalEvent
impl UnsafeUnpin for ExternalEvent
impl UnwindSafe for ExternalEvent
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