#[non_exhaustive]pub enum ConversionEvent {
Started(String),
Log(String),
#[non_exhaustive] Progress {
current_seconds: f64,
total_seconds: Option<f64>,
},
Finished(ConversionOutcome),
}Expand description
Events emitted by a cancellable embedded conversion job.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Started(String)
Log(String)
#[non_exhaustive]Progress
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Finished(ConversionOutcome)
Trait Implementations§
Source§impl Clone for ConversionEvent
impl Clone for ConversionEvent
Source§fn clone(&self) -> ConversionEvent
fn clone(&self) -> ConversionEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConversionEvent
impl Debug for ConversionEvent
Source§impl PartialEq for ConversionEvent
impl PartialEq for ConversionEvent
impl StructuralPartialEq for ConversionEvent
Auto Trait Implementations§
impl Freeze for ConversionEvent
impl RefUnwindSafe for ConversionEvent
impl Send for ConversionEvent
impl Sync for ConversionEvent
impl Unpin for ConversionEvent
impl UnsafeUnpin for ConversionEvent
impl UnwindSafe for ConversionEvent
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