pub struct AdapterInput<S> {
pub encoded: EncodedScene,
pub encoded_seq: u64,
pub state: S,
pub state_seq: u64,
}Expand description
Input consumed by one adapter-loop step.
Fields§
§encoded: EncodedSceneLatest content-rate encoded Scene.
encoded_seq: u64Sequence of the encoded Scene.
state: SFreshest device-local state available for this step.
state_seq: u64Modeled tick sequence for state.
Implementations§
Source§impl<S> AdapterInput<S>
impl<S> AdapterInput<S>
Sourcepub fn new(
encoded: EncodedScene,
encoded_seq: u64,
state: S,
state_seq: u64,
) -> Self
pub fn new( encoded: EncodedScene, encoded_seq: u64, state: S, state_seq: u64, ) -> Self
Builds an input from an encoded Scene and state.
Builds an input from a shared encoded Scene pointer.
Trait Implementations§
Source§impl<S: Clone> Clone for AdapterInput<S>
impl<S: Clone> Clone for AdapterInput<S>
Source§fn clone(&self) -> AdapterInput<S>
fn clone(&self) -> AdapterInput<S>
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<S: Debug> Debug for AdapterInput<S>
impl<S: Debug> Debug for AdapterInput<S>
Source§impl<S: PartialEq> PartialEq for AdapterInput<S>
impl<S: PartialEq> PartialEq for AdapterInput<S>
impl<S: PartialEq> StructuralPartialEq for AdapterInput<S>
Auto Trait Implementations§
impl<S> !Send for AdapterInput<S>
impl<S> !Sync for AdapterInput<S>
impl<S> Freeze for AdapterInput<S>where
S: Freeze,
impl<S> RefUnwindSafe for AdapterInput<S>where
S: RefUnwindSafe,
impl<S> Unpin for AdapterInput<S>where
S: Unpin,
impl<S> UnsafeUnpin for AdapterInput<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for AdapterInput<S>where
S: UnwindSafe,
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