Struct laminarmq_io::buffered_io::BufferedByteLender
source · pub struct BufferedByteLender<BL>(/* private fields */);
Trait Implementations§
source§impl<R, BL> AsyncRead<BufferedByteLender<BL>> for BufferedAppender<R, R::Position, R::Size>where
R: AsyncRead<BL>,
BL: ByteLender,
impl<R, BL> AsyncRead<BufferedByteLender<BL>> for BufferedAppender<R, R::Position, R::Size>where
R: AsyncRead<BL>,
BL: ByteLender,
async fn read_at<'a>(
&'a mut self,
position: Self::Position,
size: Self::Size,
) -> Result<ReadBytes<<BufferedByteLender<BL> as ByteLender>::ByteBuf<'a>, Self::Size>, Self::Error>where
BufferedByteLender<BL>: 'a,
source§impl<R, BL> AsyncRead<BufferedByteLender<BL>> for BufferedReader<R, R::Position, R::Size>where
R: AsyncRead<BL>,
BL: ByteLender,
impl<R, BL> AsyncRead<BufferedByteLender<BL>> for BufferedReader<R, R::Position, R::Size>where
R: AsyncRead<BL>,
BL: ByteLender,
async fn read_at<'a>(
&'a mut self,
position: Self::Position,
size: Self::Size,
) -> Result<ReadBytes<<BufferedByteLender<BL> as ByteLender>::ByteBuf<'a>, Self::Size>, Self::Error>where
BufferedByteLender<BL>: 'a,
source§impl<BL> ByteLender for BufferedByteLender<BL>where
BL: ByteLender,
impl<BL> ByteLender for BufferedByteLender<BL>where
BL: ByteLender,
type ByteBuf<'a> = BufferedReadByteBuf<<BL as ByteLender>::ByteBuf<'a>> where Self: 'a
source§impl<R, RBL> StreamRead<BufferedByteLender<RBL>> for BufferedAppender<R, R::Position, R::Size>
impl<R, RBL> StreamRead<BufferedByteLender<RBL>> for BufferedAppender<R, R::Position, R::Size>
fn read_stream_at<'a>(
&'a mut self,
position: Self::Position,
size: Self::Size,
) -> impl Stream<FallibleByteLender<BufferedByteLender<RBL>, Self::Error>> + 'awhere
BufferedByteLender<R::Error>: 'a,
source§impl<R, RBL> StreamRead<BufferedByteLender<RBL>> for BufferedReader<R, R::Position, R::Size>
impl<R, RBL> StreamRead<BufferedByteLender<RBL>> for BufferedReader<R, R::Position, R::Size>
fn read_stream_at<'a>(
&'a mut self,
position: Self::Position,
size: Self::Size,
) -> impl Stream<FallibleByteLender<BufferedByteLender<RBL>, Self::Error>> + 'awhere
BufferedByteLender<RBL>: 'a,
Auto Trait Implementations§
impl<BL> Freeze for BufferedByteLender<BL>
impl<BL> RefUnwindSafe for BufferedByteLender<BL>where
BL: RefUnwindSafe,
impl<BL> Send for BufferedByteLender<BL>where
BL: Send,
impl<BL> Sync for BufferedByteLender<BL>where
BL: Sync,
impl<BL> Unpin for BufferedByteLender<BL>where
BL: Unpin,
impl<BL> UnwindSafe for BufferedByteLender<BL>where
BL: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreCreates a shared type from an unshared type.