pub struct AsyncDecompressionMonitor { /* private fields */ }Available on crate feature
async only.Expand description
Async-aware decompression monitor with progress tracking
Implementations§
Source§impl AsyncDecompressionMonitor
impl AsyncDecompressionMonitor
Sourcepub fn new(max_size: u64, max_time: Duration, buffer_size: usize) -> Self
pub fn new(max_size: u64, max_time: Duration, buffer_size: usize) -> Self
Create a new async decompression monitor
Sourcepub async fn check_progress(&self, current_output_size: u64) -> Result<()>
pub async fn check_progress(&self, current_output_size: u64) -> Result<()>
Check if decompression should continue (async-safe)
Sourcepub fn request_cancellation(&self)
pub fn request_cancellation(&self)
Request cancellation of decompression
Sourcepub fn get_buffer_size(&self) -> usize
pub fn get_buffer_size(&self) -> usize
Get recommended buffer size for async operations
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AsyncDecompressionMonitor
impl RefUnwindSafe for AsyncDecompressionMonitor
impl Send for AsyncDecompressionMonitor
impl Sync for AsyncDecompressionMonitor
impl Unpin for AsyncDecompressionMonitor
impl UnwindSafe for AsyncDecompressionMonitor
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