pub struct Frame {
pub time: Duration,
pub data: Vec<u8>,
}Expand description
Represents a single ttyrec frame.
Ttyrec files are a raw concatenation of frames. Note that the timestamps in the frame are absolute timestamps, and only the difference between them is relevant. The base timestamp can be anything (common choices are 0 or the actual time that the frame was generated).
Frame objects are typically created via the Creator,
Parser, or Reader classes.
Fields§
§time: DurationAmount of time passed since the start of the ttyrec file.
Note that this is not the amount of time since the previous frame.
data: Vec<u8>Bytes emitted at the given time.
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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