Struct laminarmq_io::buf_io::BufAppender
source · pub struct BufAppender<R, P, S> { /* private fields */ }
Trait Implementations§
source§impl<R> AsyncAppend for BufAppender<R, R::Position, R::Size>where
R: AsyncAppend + AsyncFlush,
impl<R> AsyncAppend for BufAppender<R, R::Position, R::Size>where
R: AsyncAppend + AsyncFlush,
async fn append( &mut self, bytes: Bytes, ) -> Result<AppendInfo<Self::Position, Self::Size>, UnwrittenError<Self::Error>>
source§impl<R> AsyncBufRead for BufAppender<R, R::Position, R::Size>where
R: AsyncBufRead,
impl<R> AsyncBufRead for BufAppender<R, R::Position, R::Size>where
R: AsyncBufRead,
async fn read_at_buf( &mut self, position: Self::Position, buffer: BytesMut, ) -> Result<ReadBytes<BytesMut, Self::Size>, UnreadError<Self::Error>>
fn read_at_buf_sized( &mut self, position: Self::Position, size: Self::Size, buffer: BytesMut, ) -> impl Future<Output = Result<ReadBytes<BytesMut, Self::Size>, UnreadError<Self::Error>>>
source§impl<R> AsyncClose for BufAppender<R, R::Position, R::Size>
impl<R> AsyncClose for BufAppender<R, R::Position, R::Size>
source§impl<R> AsyncFlush for BufAppender<R, R::Position, R::Size>where
R: AsyncFlush + AsyncAppend,
impl<R> AsyncFlush for BufAppender<R, R::Position, R::Size>where
R: AsyncFlush + AsyncAppend,
source§impl<R, BL> AsyncRead<BufByteLender<BL>> for BufAppender<R, R::Position, R::Size>where
R: AsyncRead<BL>,
BL: ByteLender,
impl<R, BL> AsyncRead<BufByteLender<BL>> for BufAppender<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<<BufByteLender<BL> as ByteLender>::ByteBuf<'a>, Self::Size>, Self::Error>where
BufByteLender<BL>: 'a,
source§impl<R, P, S> AsyncRemove for BufAppender<R, P, S>where
R: AsyncRemove,
impl<R, P, S> AsyncRemove for BufAppender<R, P, S>where
R: AsyncRemove,
source§impl<R> AsyncTruncate for BufAppender<R, R::Position, R::Size>where
R: AsyncTruncate,
impl<R> AsyncTruncate for BufAppender<R, R::Position, R::Size>where
R: AsyncTruncate,
source§impl<R, P, S> FallibleEntity for BufAppender<R, P, S>where
R: FallibleEntity,
impl<R, P, S> FallibleEntity for BufAppender<R, P, S>where
R: FallibleEntity,
type Error = BufAppenderError<<R as FallibleEntity>::Error>
source§impl<R> SizedEntity for BufAppender<R, R::Position, R::Size>where
R: SizedEntity,
impl<R> SizedEntity for BufAppender<R, R::Position, R::Size>where
R: SizedEntity,
source§impl<R, RBL> StreamRead<BufByteLender<RBL>> for BufAppender<R, R::Position, R::Size>
impl<R, RBL> StreamRead<BufByteLender<RBL>> for BufAppender<R, R::Position, R::Size>
fn read_stream_at<'a>(
&'a mut self,
position: Self::Position,
size: Self::Size,
) -> impl Stream<FallibleByteLender<BufByteLender<RBL>, Self::Error>> + 'awhere
BufByteLender<R::Error>: 'a,
Auto Trait Implementations§
impl<R, P, S> !Freeze for BufAppender<R, P, S>
impl<R, P, S> RefUnwindSafe for BufAppender<R, P, S>
impl<R, P, S> Send for BufAppender<R, P, S>
impl<R, P, S> Sync for BufAppender<R, P, S>
impl<R, P, S> Unpin for BufAppender<R, P, S>
impl<R, P, S> UnwindSafe for BufAppender<R, P, S>
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.