pub enum SessionInput {
Playing(bool),
Seek(f64),
Visible(bool),
ContextAvailable(bool),
Immersive(bool),
}Expand description
Explicit input from DOM controls and browser lifecycle events.
Variants§
Playing(bool)
Play or pause animation, resetting the browser timestamp baseline.
Seek(f64)
Seek to a finite, non-negative scene time in seconds.
Visible(bool)
Combined page visibility and viewport intersection state.
ContextAvailable(bool)
Whether the host’s graphics context can accept rendering work.
Immersive(bool)
Whether an immersive XR session actually owns the animation loop.
Trait Implementations§
Source§impl Clone for SessionInput
impl Clone for SessionInput
Source§fn clone(&self) -> SessionInput
fn clone(&self) -> SessionInput
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 SessionInput
Source§impl Debug for SessionInput
impl Debug for SessionInput
Source§impl PartialEq for SessionInput
impl PartialEq for SessionInput
Source§fn eq(&self, other: &SessionInput) -> bool
fn eq(&self, other: &SessionInput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionInput
Auto Trait Implementations§
impl Freeze for SessionInput
impl RefUnwindSafe for SessionInput
impl Send for SessionInput
impl Sync for SessionInput
impl Unpin for SessionInput
impl UnsafeUnpin for SessionInput
impl UnwindSafe for SessionInput
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