pub struct InstrumentedReadAt<T: VortexReadAt> { /* private fields */ }
Implementations§
Source§impl<T: VortexReadAt> InstrumentedReadAt<T>
impl<T: VortexReadAt> InstrumentedReadAt<T>
pub fn new(read: T, metrics: &VortexMetrics) -> Self
Trait Implementations§
Source§impl<T: Clone + VortexReadAt> Clone for InstrumentedReadAt<T>
impl<T: Clone + VortexReadAt> Clone for InstrumentedReadAt<T>
Source§fn clone(&self) -> InstrumentedReadAt<T>
fn clone(&self) -> InstrumentedReadAt<T>
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 moreSource§impl<T: VortexReadAt> VortexReadAt for InstrumentedReadAt<T>
impl<T: VortexReadAt> VortexReadAt for InstrumentedReadAt<T>
Source§async fn read_byte_range(
&self,
range: Range<u64>,
alignment: Alignment,
) -> Result<ByteBuffer>
async fn read_byte_range( &self, range: Range<u64>, alignment: Alignment, ) -> Result<ByteBuffer>
Request an asynchronous positional read. Results will be returned as a
ByteBuffer
. Read moreSource§async fn size(&self) -> Result<u64>
async fn size(&self) -> Result<u64>
Asynchronously get the number of bytes of data readable. Read more
fn performance_hint(&self) -> PerformanceHint
Auto Trait Implementations§
impl<T> Freeze for InstrumentedReadAt<T>where
T: Freeze,
impl<T> !RefUnwindSafe for InstrumentedReadAt<T>
impl<T> Send for InstrumentedReadAt<T>where
T: Send,
impl<T> Sync for InstrumentedReadAt<T>where
T: Sync,
impl<T> Unpin for InstrumentedReadAt<T>where
T: Unpin,
impl<T> !UnwindSafe for InstrumentedReadAt<T>
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> 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 more