pub enum FrameworkEvent {
Entity(EntityEvent),
Link(LinkEvent),
}Expand description
Top-level framework event that wraps entity and link events
Variants§
Implementations§
Source§impl FrameworkEvent
impl FrameworkEvent
Sourcepub fn event_kind(&self) -> &str
pub fn event_kind(&self) -> &str
Get the timestamp of the event (generated at creation time) Note: timestamp is added by EventEnvelope, not by the event itself
Sourcepub fn entity_type(&self) -> Option<&str>
pub fn entity_type(&self) -> Option<&str>
Get the entity type this event relates to
Trait Implementations§
Source§impl Clone for FrameworkEvent
impl Clone for FrameworkEvent
Source§fn clone(&self) -> FrameworkEvent
fn clone(&self) -> FrameworkEvent
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 moreSource§impl Debug for FrameworkEvent
impl Debug for FrameworkEvent
Source§impl<'de> Deserialize<'de> for FrameworkEvent
impl<'de> Deserialize<'de> for FrameworkEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FrameworkEvent
impl RefUnwindSafe for FrameworkEvent
impl Send for FrameworkEvent
impl Sync for FrameworkEvent
impl Unpin for FrameworkEvent
impl UnwindSafe for FrameworkEvent
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