pub struct ProcessResult {
pub path: PathBuf,
pub thumbnail: Result<ThumbnailData, RawError>,
pub elapsed: Duration,
pub input_size: u64,
}Expand description
Result of processing a single file
Fields§
§path: PathBufInput file path
thumbnail: Result<ThumbnailData, RawError>Processing result
elapsed: DurationProcessing time
input_size: u64Input file size in bytes
Implementations§
Source§impl ProcessResult
impl ProcessResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns true if processing was successful
Sourcepub fn thumbnail(&self) -> Option<&ThumbnailData>
pub fn thumbnail(&self) -> Option<&ThumbnailData>
Get the thumbnail data if successful
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessResult
impl RefUnwindSafe for ProcessResult
impl Send for ProcessResult
impl Sync for ProcessResult
impl Unpin for ProcessResult
impl UnsafeUnpin for ProcessResult
impl UnwindSafe for ProcessResult
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