pub struct LargeFileResult {
pub path: String,
pub total_bytes: usize,
pub chunk_count: usize,
pub version: u64,
pub correction_bytes: usize,
pub hierarchy_levels: usize,
pub sub_engram_count: usize,
pub chunk_size_used: usize,
}Expand description
Result of large file write operation
Fields§
§path: StringPath of the file
total_bytes: usizeTotal bytes written
chunk_count: usizeNumber of chunks created
version: u64File version
correction_bytes: usizeTotal correction bytes
hierarchy_levels: usizeNumber of hierarchy levels used
sub_engram_count: usizeNumber of sub-engrams at lowest level
chunk_size_used: usizeChunk size used for this file
Implementations§
Source§impl LargeFileResult
impl LargeFileResult
Sourcepub fn correction_ratio(&self) -> f64
pub fn correction_ratio(&self) -> f64
Calculate correction ratio (correction bytes / total bytes)
Sourcepub fn is_acceptable_quality(&self) -> bool
pub fn is_acceptable_quality(&self) -> bool
Check if encoding quality is acceptable (< 10% correction)
Trait Implementations§
Source§impl Clone for LargeFileResult
impl Clone for LargeFileResult
Source§fn clone(&self) -> LargeFileResult
fn clone(&self) -> LargeFileResult
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 moreAuto Trait Implementations§
impl Freeze for LargeFileResult
impl RefUnwindSafe for LargeFileResult
impl Send for LargeFileResult
impl Sync for LargeFileResult
impl Unpin for LargeFileResult
impl UnwindSafe for LargeFileResult
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