pub struct EncodingLog { /* private fields */ }Expand description
A complete log of encoding events for one session.
Implementations§
Source§impl EncodingLog
impl EncodingLog
Sourcepub fn record(&mut self, event: EncodingEvent)
pub fn record(&mut self, event: EncodingEvent)
Record a new event, automatically computing elapsed time.
Sourcepub fn errors(&self) -> Vec<&EncodingLogEntry>
pub fn errors(&self) -> Vec<&EncodingLogEntry>
All error entries.
Sourcepub fn warnings(&self) -> Vec<&EncodingLogEntry>
pub fn warnings(&self) -> Vec<&EncodingLogEntry>
All warning entries.
Sourcepub fn progress_events(&self) -> Vec<&EncodingLogEntry>
pub fn progress_events(&self) -> Vec<&EncodingLogEntry>
All progress milestone entries.
Sourcepub fn all_entries(&self) -> &[EncodingLogEntry]
pub fn all_entries(&self) -> &[EncodingLogEntry]
All entries in insertion order.
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Returns true if any fatal error was recorded.
Sourcepub fn last_progress_pct(&self) -> Option<u8>
pub fn last_progress_pct(&self) -> Option<u8>
The most recent progress percentage (0–100), or None if not yet reported.
Trait Implementations§
Source§impl Debug for EncodingLog
impl Debug for EncodingLog
Source§impl Default for EncodingLog
impl Default for EncodingLog
Source§fn default() -> EncodingLog
fn default() -> EncodingLog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EncodingLog
impl RefUnwindSafe for EncodingLog
impl Send for EncodingLog
impl Sync for EncodingLog
impl Unpin for EncodingLog
impl UnsafeUnpin for EncodingLog
impl UnwindSafe for EncodingLog
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
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>
Converts
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>
Converts
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