Struct laminarmq_io::buffered_io::BufferedReader

source ·
pub struct BufferedReader<R, P, S> { /* private fields */ }

Trait Implementations§

source§

impl<R, P, S> AsyncClose for BufferedReader<R, P, S>

source§

async fn close(self) -> Result<(), Self::Error>

source§

impl<R, P, S> AsyncFlush for BufferedReader<R, P, S>
where R: AsyncFlush,

source§

async fn flush(&mut self) -> Result<(), Self::Error>

source§

impl<R, BL> AsyncRead<BufferedByteLender<BL>> for BufferedReader<R, R::Position, R::Size>
where R: AsyncRead<BL>, BL: ByteLender,

source§

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> AsyncRead<OwnedByteLender<Bytes>> for BufferedReader<R, R::Position, R::Size>
where R: AsyncBufRead,

source§

async fn read_at<'a>( &'a mut self, position: Self::Position, size: Self::Size, ) -> Result<ReadBytes<<OwnedByteLender<Bytes> as ByteLender>::ByteBuf<'a>, Self::Size>, Self::Error>
where OwnedByteLender<Bytes>: 'a,

source§

impl<R, P, S> AsyncRemove for BufferedReader<R, P, S>
where R: AsyncRemove,

source§

async fn remove(self) -> Result<(), Self::Error>

source§

impl<R> AsyncTruncate for BufferedReader<R, R::Position, R::Size>
where R: AsyncTruncate,

source§

async fn truncate( &mut self, position: Self::Position, ) -> Result<(), Self::Error>

source§

impl<R, P, S> FallibleEntity for BufferedReader<R, P, S>
where R: FallibleEntity,

source§

impl<R> SizedEntity for BufferedReader<R, R::Position, R::Size>
where R: SizedEntity,

§

type Position = <R as SizedEntity>::Position

§

type Size = <R as SizedEntity>::Size

source§

fn size(&self) -> Self::Size

source§

fn contains(&self, position: Self::Position) -> bool

source§

impl<R, RBL> StreamRead<BufferedByteLender<RBL>> for BufferedReader<R, R::Position, R::Size>
where R: StreamRead<RBL>, R::Error: 'static, RBL: ByteLender + 'static,

source§

fn read_stream_at<'a>( &'a mut self, position: Self::Position, size: Self::Size, ) -> impl Stream<FallibleByteLender<BufferedByteLender<RBL>, Self::Error>> + 'a
where BufferedByteLender<RBL>: 'a,

Auto Trait Implementations§

§

impl<R, P, S> !Freeze for BufferedReader<R, P, S>

§

impl<R, P, S> RefUnwindSafe for BufferedReader<R, P, S>

§

impl<R, P, S> Send for BufferedReader<R, P, S>
where R: Send, S: Send, P: Send,

§

impl<R, P, S> Sync for BufferedReader<R, P, S>
where R: Sync, S: Sync, P: Sync,

§

impl<R, P, S> Unpin for BufferedReader<R, P, S>
where R: Unpin, S: Unpin, P: Unpin,

§

impl<R, P, S> UnwindSafe for BufferedReader<R, P, S>
where R: UnwindSafe, S: UnwindSafe, P: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T