pub enum EventContent {
ProcessControl(ProcessControlType),
Message {
message_type: u32,
category: MessageCategory,
},
Notification(NotificationType),
Custom {
namespace: String,
event_id: u32,
},
}Expand description
Event content types
Defines WHAT the event represents, independent of HOW it’s delivered
Variants§
ProcessControl(ProcessControlType)
Process control events (equivalent to signals, but OS-agnostic)
Message
Application-level message with type
Notification(NotificationType)
System notification
Custom
Custom event defined by ABI or application
Trait Implementations§
Source§impl Clone for EventContent
impl Clone for EventContent
Source§fn clone(&self) -> EventContent
fn clone(&self) -> EventContent
Returns a duplicate of the value. Read more
1.0.0§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 EventContent
impl RefUnwindSafe for EventContent
impl Send for EventContent
impl Sync for EventContent
impl Unpin for EventContent
impl UnwindSafe for EventContent
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, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)