pub struct Recording {
pub from_ms: i64,
pub to_ms: i64,
pub steps: Vec<Step>,
/* private fields */
}Expand description
A recording: its document and what it covers.
Fields§
§from_ms: i64Milliseconds since the Unix epoch at which the start state stands.
to_ms: i64Milliseconds since the Unix epoch of the last step, or from_ms.
steps: Vec<Step>The steps after the start, oldest first. Empty for a loaded recording, whose original changes are not known.
Implementations§
Source§impl Recording
impl Recording
Sourcepub fn load(bytes: &[u8], limits: &Limits) -> Result<Self, RecordingError>
pub fn load(bytes: &[u8], limits: &Limits) -> Result<Self, RecordingError>
Read a recording from its saved bytes, within limits.
§Errors
Refuses bytes past limits.bytes, a document that does not start
with a recording’s start state, or one with more steps than
limits.steps.
Sourcepub fn doc(&self) -> &Doc
pub fn doc(&self) -> &Doc
The recording’s document: a document of the recorded resource’s shape whose history is the recording.
Sourcepub fn bytes(&self) -> Vec<u8> ⓘ
pub fn bytes(&self) -> Vec<u8> ⓘ
The saved bytes, behind the recording header
(tilo_content::RECORDING_MAGIC) that says what they are: what a
report carries and what the recorded app opens.
Sourcepub fn versions(&self) -> Vec<Version>
pub fn versions(&self) -> Vec<Version>
The start state and every step after it, oldest first, as History lists them.
Sourcepub fn step_count(&self) -> usize
pub fn step_count(&self) -> usize
How many steps follow the start state.
Auto Trait Implementations§
impl !Freeze for Recording
impl Forget for Recording
impl Move for Recording
impl RefUnwindSafe for Recording
impl Send for Recording
impl Sync for Recording
impl Unpin for Recording
impl UnsafeUnpin for Recording
impl UnwindSafe for Recording
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more