pub struct DefaultSqueezeIo { /* private fields */ }Expand description
A default implementation of SqueezeIoHandler that uses the default IoContext.
Implementations§
Trait Implementations§
Source§impl Debug for DefaultSqueezeIo
impl Debug for DefaultSqueezeIo
Source§impl SqueezeIoHandler for DefaultSqueezeIo
impl SqueezeIoHandler for DefaultSqueezeIo
Source§fn read<'life0, 'async_trait>(
&'life0 self,
range: Option<Range<u64>>,
) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read<'life0, 'async_trait>(
&'life0 self,
range: Option<Range<u64>>,
) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the backing bytes of a squeezed array from disk.
Source§fn tracing_decompress_count(&self, decompress_cnt: usize, total_cnt: usize)
fn tracing_decompress_count(&self, decompress_cnt: usize, total_cnt: usize)
Trace the number of decompressions performed.
Source§fn trace_io_saved(&self)
fn trace_io_saved(&self)
Trace the number of IO saved by squeezing.
Auto Trait Implementations§
impl Freeze for DefaultSqueezeIo
impl !RefUnwindSafe for DefaultSqueezeIo
impl Send for DefaultSqueezeIo
impl Sync for DefaultSqueezeIo
impl Unpin for DefaultSqueezeIo
impl UnsafeUnpin for DefaultSqueezeIo
impl !UnwindSafe for DefaultSqueezeIo
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request