pub struct EventDefinition {
pub kind: u8,
pub name: &'static str,
pub version: u16,
pub fields: &'static [PayloadFieldDefinition],
}Expand description
Static definition for one event type.
Fields§
§kind: u8Stable event kind.
name: &'static strRust/source-level event name.
version: u16Schema version encoded as a compact u16.
fields: &'static [PayloadFieldDefinition]Payload fields.
Trait Implementations§
Source§impl Clone for EventDefinition
impl Clone for EventDefinition
Source§fn clone(&self) -> EventDefinition
fn clone(&self) -> EventDefinition
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 EventDefinition
impl Debug for EventDefinition
impl Copy for EventDefinition
Auto Trait Implementations§
impl Freeze for EventDefinition
impl RefUnwindSafe for EventDefinition
impl Send for EventDefinition
impl Sync for EventDefinition
impl Unpin for EventDefinition
impl UnsafeUnpin for EventDefinition
impl UnwindSafe for EventDefinition
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