pub struct ScriptStep {
pub frame: usize,
pub event: ScriptEvent,
}Expand description
一条脚本指令:在第 frame 帧 paint 之前注入 event。
用帧索引而非绝对毫秒调度:帧号 × --frame-ms 即逻辑时间,完全确定,
不受时钟推进方式(advance vs set)影响。
Fields§
§frame: usize§event: ScriptEventTrait Implementations§
Source§impl Clone for ScriptStep
impl Clone for ScriptStep
Source§impl Debug for ScriptStep
impl Debug for ScriptStep
Source§impl<'de> Deserialize<'de> for ScriptStep
impl<'de> Deserialize<'de> for ScriptStep
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
Source§impl PartialEq for ScriptStep
impl PartialEq for ScriptStep
impl StructuralPartialEq for ScriptStep
Auto Trait Implementations§
impl Forget for ScriptStep
impl Freeze for ScriptStep
impl Move for ScriptStep
impl RefUnwindSafe for ScriptStep
impl Send for ScriptStepwhere
RawVecInner: Send,
impl Sync for ScriptStepwhere
RawVecInner: Sync,
impl Unpin for ScriptStep
impl UnsafeUnpin for ScriptStep
impl UnwindSafe for ScriptStepwhere
RawVecInner: 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