pub struct LargeFileHandler<'a> { /* private fields */ }Expand description
Large file handler with improved algorithms
Implementations§
Source§impl<'a> LargeFileHandler<'a>
impl<'a> LargeFileHandler<'a>
Sourcepub fn new(fs: &'a VersionedEmbrFS) -> Self
pub fn new(fs: &'a VersionedEmbrFS) -> Self
Create a new large file handler
Sourcepub fn with_config(fs: &'a VersionedEmbrFS, config: LargeFileConfig) -> Self
pub fn with_config(fs: &'a VersionedEmbrFS, config: LargeFileConfig) -> Self
Create with custom configuration
Sourcepub fn write_large_file(
&self,
path: &str,
data: &[u8],
expected_version: Option<u64>,
) -> Result<LargeFileResult, EmbrFSError>
pub fn write_large_file( &self, path: &str, data: &[u8], expected_version: Option<u64>, ) -> Result<LargeFileResult, EmbrFSError>
Write a large file with improved encoding
Uses hierarchical sub-engrams and adaptive chunking for better fidelity.
Auto Trait Implementations§
impl<'a> Freeze for LargeFileHandler<'a>
impl<'a> RefUnwindSafe for LargeFileHandler<'a>
impl<'a> Send for LargeFileHandler<'a>
impl<'a> Sync for LargeFileHandler<'a>
impl<'a> Unpin for LargeFileHandler<'a>
impl<'a> UnwindSafe for LargeFileHandler<'a>
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