pub struct Keyframe {
pub id: VisualStateId,
pub timestamp: StateTime,
pub state: VisualState,
pub interval_ms: u32,
pub sequence: u64,
}Expand description
Keyframe - Complete visual state snapshot
Fields§
§id: VisualStateIdKeyframe identifier
timestamp: StateTimeTimestamp
state: VisualStateComplete visual state
interval_ms: u32Keyframe interval (how often keyframes are sent)
sequence: u64Sequence number
Implementations§
Source§impl Keyframe
impl Keyframe
Sourcepub fn new(state: VisualState, interval_ms: u32) -> Self
pub fn new(state: VisualState, interval_ms: u32) -> Self
Create a new keyframe
Sourcepub fn estimated_size(&self) -> usize
pub fn estimated_size(&self) -> usize
Estimated size in bytes (for bandwidth calculation)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Keyframe
impl RefUnwindSafe for Keyframe
impl Send for Keyframe
impl Sync for Keyframe
impl Unpin for Keyframe
impl UnsafeUnpin for Keyframe
impl UnwindSafe for Keyframe
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