pub enum EncodingEvent {
Warning(String),
Error(String),
Progress(u8),
Phase(String),
Info(String),
}Expand description
Categories of events that can occur during an encoding session.
Variants§
Warning(String)
A non-fatal advisory message.
Error(String)
A fatal error that stopped encoding.
Progress(u8)
A milestone reporting percentage completion.
Phase(String)
A phase boundary (e.g. “pass 1 complete”).
Info(String)
An informational note.
Implementations§
Source§impl EncodingEvent
impl EncodingEvent
Sourcepub fn is_warning(&self) -> bool
pub fn is_warning(&self) -> bool
Returns true for warning-level events.
Sourcepub fn is_progress(&self) -> bool
pub fn is_progress(&self) -> bool
Returns true for progress milestone events.
Trait Implementations§
Source§impl Clone for EncodingEvent
impl Clone for EncodingEvent
Source§fn clone(&self) -> EncodingEvent
fn clone(&self) -> EncodingEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncodingEvent
impl Debug for EncodingEvent
Source§impl Hash for EncodingEvent
impl Hash for EncodingEvent
Source§impl PartialEq for EncodingEvent
impl PartialEq for EncodingEvent
impl Eq for EncodingEvent
impl StructuralPartialEq for EncodingEvent
Auto Trait Implementations§
impl Freeze for EncodingEvent
impl RefUnwindSafe for EncodingEvent
impl Send for EncodingEvent
impl Sync for EncodingEvent
impl Unpin for EncodingEvent
impl UnsafeUnpin for EncodingEvent
impl UnwindSafe for EncodingEvent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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