pub struct HybridEventSpec {
pub name: String,
pub params: Vec<HybridParamSpec>,
pub doc: Option<String>,
pub retained: bool,
}Expand description
Typed event declared with #[event] or #[event(retained)] on a HybridModuleSpec or HybridViewSpec.
Fields§
§name: String§params: Vec<HybridParamSpec>§doc: Option<String>§retained: boolWhen true (#[event(retained)]), the latest payload is retained by DirectEventHub and
replayed automatically to newly attached or reloaded surfaces.
Trait Implementations§
Source§impl Clone for HybridEventSpec
impl Clone for HybridEventSpec
Source§fn clone(&self) -> HybridEventSpec
fn clone(&self) -> HybridEventSpec
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 moreSource§impl Debug for HybridEventSpec
impl Debug for HybridEventSpec
impl Eq for HybridEventSpec
Source§impl PartialEq for HybridEventSpec
impl PartialEq for HybridEventSpec
impl StructuralPartialEq for HybridEventSpec
Auto Trait Implementations§
impl Forget for HybridEventSpec
impl Freeze for HybridEventSpec
impl Move for HybridEventSpec
impl RefUnwindSafe for HybridEventSpec
impl Send for HybridEventSpec
impl Sync for HybridEventSpec
impl Unpin for HybridEventSpec
impl UnsafeUnpin for HybridEventSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<HybridParamSpec>: UnsafeUnpin,
impl UnwindSafe for HybridEventSpec
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