pub struct GlanceState {
pub pending_input: Option<GlanceInput>,
pub tick: u64,
}Expand description
State consumed by crate::GlanceAdapter.
Fields§
§pending_input: Option<GlanceInput>Pending input to acknowledge locally.
tick: u64Modeled device tick.
Implementations§
Source§impl GlanceState
impl GlanceState
Sourcepub fn with_input(input: GlanceInput, tick: u64) -> Self
pub fn with_input(input: GlanceInput, tick: u64) -> Self
Builds a state carrying one pending input.
Trait Implementations§
Source§impl Clone for GlanceState
impl Clone for GlanceState
Source§fn clone(&self) -> GlanceState
fn clone(&self) -> GlanceState
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 GlanceState
impl Debug for GlanceState
impl Eq for GlanceState
Source§impl PartialEq for GlanceState
impl PartialEq for GlanceState
impl StructuralPartialEq for GlanceState
Auto Trait Implementations§
impl Freeze for GlanceState
impl RefUnwindSafe for GlanceState
impl Send for GlanceState
impl Sync for GlanceState
impl Unpin for GlanceState
impl UnsafeUnpin for GlanceState
impl UnwindSafe for GlanceState
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