pub struct OnSurfaceCreatedEvent {
pub name: &'static str,
pub surface_index: u32,
pub tick: u32,
}Expand description
Called when a surface is created.
This is not called when the default surface is created as it will always exist.
Fields§
§name: &'static str§surface_index: u32§tick: u32Trait Implementations§
Source§impl Clone for OnSurfaceCreatedEvent
impl Clone for OnSurfaceCreatedEvent
Source§fn clone(&self) -> OnSurfaceCreatedEvent
fn clone(&self) -> OnSurfaceCreatedEvent
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 moreimpl Copy for OnSurfaceCreatedEvent
Source§impl Debug for OnSurfaceCreatedEvent
impl Debug for OnSurfaceCreatedEvent
Source§impl Default for OnSurfaceCreatedEvent
impl Default for OnSurfaceCreatedEvent
Source§fn default() -> OnSurfaceCreatedEvent
fn default() -> OnSurfaceCreatedEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnSurfaceCreatedEvent
impl PartialEq for OnSurfaceCreatedEvent
impl StructuralPartialEq for OnSurfaceCreatedEvent
Auto Trait Implementations§
impl Freeze for OnSurfaceCreatedEvent
impl RefUnwindSafe for OnSurfaceCreatedEvent
impl Send for OnSurfaceCreatedEvent
impl Sync for OnSurfaceCreatedEvent
impl Unpin for OnSurfaceCreatedEvent
impl UnsafeUnpin for OnSurfaceCreatedEvent
impl UnwindSafe for OnSurfaceCreatedEvent
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