#[non_exhaustive]pub struct GpuEvent {
pub name: Arc<str>,
pub data: JsonValue,
}Expand description
An event a renderer emitted (GpuFrame::emit): its view’s
on<Name> handler gets data.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Arc<str>Its name (pick reaches onPick).
data: JsonValueWhat it carries.
Trait Implementations§
impl StructuralPartialEq for GpuEvent
Auto Trait Implementations§
impl Forget for GpuEvent
impl Freeze for GpuEvent
impl Move for GpuEvent
impl RefUnwindSafe for GpuEvent
impl Send for GpuEvent
impl Sync for GpuEvent
impl Unpin for GpuEvent
impl UnsafeUnpin for GpuEventwhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for GpuEvent
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