pub struct TimecodeLog {
pub name: String,
/* private fields */
}Expand description
Production timecode log.
A sorted list of LogEntry values that can be recorded, queried,
and exported in various formats.
Fields§
§name: StringLog name / production title.
Implementations§
Source§impl TimecodeLog
impl TimecodeLog
Sourcepub fn record(
&mut self,
timecode: Timecode,
level: LogLevel,
message: impl Into<String>,
)
pub fn record( &mut self, timecode: Timecode, level: LogLevel, message: impl Into<String>, )
Record a new entry.
Sourcepub fn query(&self, filter: &LogFilter) -> Vec<&LogEntry>
pub fn query(&self, filter: &LogFilter) -> Vec<&LogEntry>
Return all entries matching the given filter.
Sourcepub fn all_entries(&self) -> &[LogEntry]
pub fn all_entries(&self) -> &[LogEntry]
Return all entries.
Sourcepub fn first_at_or_after(&self, tc: &Timecode) -> Option<&LogEntry>
pub fn first_at_or_after(&self, tc: &Timecode) -> Option<&LogEntry>
Find the first entry at or after the given timecode.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimecodeLog
impl RefUnwindSafe for TimecodeLog
impl Send for TimecodeLog
impl Sync for TimecodeLog
impl Unpin for TimecodeLog
impl UnsafeUnpin for TimecodeLog
impl UnwindSafe for TimecodeLog
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