pub struct PresentPayload {
pub frame: u64,
pub present_mode: u32,
}Expand description
Payload for present events.
Fields§
§frame: u64Frame index.
present_mode: u32Present mode (0 vsync, 1 immediate, 2 mailbox, …).
Trait Implementations§
Source§impl Clone for PresentPayload
impl Clone for PresentPayload
Source§fn clone(&self) -> PresentPayload
fn clone(&self) -> PresentPayload
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 PresentPayload
Source§impl Debug for PresentPayload
impl Debug for PresentPayload
Source§impl Default for PresentPayload
impl Default for PresentPayload
Source§fn default() -> PresentPayload
fn default() -> PresentPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PresentPayload
impl<'de> Deserialize<'de> for PresentPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PresentPayload
Source§impl PartialEq for PresentPayload
impl PartialEq for PresentPayload
Source§impl Serialize for PresentPayload
impl Serialize for PresentPayload
impl StructuralPartialEq for PresentPayload
Auto Trait Implementations§
impl Freeze for PresentPayload
impl RefUnwindSafe for PresentPayload
impl Send for PresentPayload
impl Sync for PresentPayload
impl Unpin for PresentPayload
impl UnsafeUnpin for PresentPayload
impl UnwindSafe for PresentPayload
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