BoxReader

Struct BoxReader 

Source
pub struct BoxReader<R, B> { /* private fields */ }

Implementations§

Source§

impl<R, B> BoxReader<R, B>

Source

pub fn with_buffer( inner: R, key: Key, nonce: Nonce, buffer: B, ) -> BoxReader<R, B>

Source

pub fn is_closed(&self) -> bool

Source

pub fn into_inner(self) -> R

Source§

impl<R> BoxReader<R, Vec<u8>>

Source

pub fn new(inner: R, key: Key, nonce: Nonce) -> BoxReader<R, Vec<u8>>

Trait Implementations§

Source§

impl<R, B> AsyncRead for BoxReader<R, B>
where R: Unpin + AsyncRead + 'static, B: AsMut<[u8]> + Unpin,

Source§

fn poll_read( self: Pin<&mut Self>, cx: &mut Context<'_>, out: &mut [u8], ) -> Poll<Result<usize, Error>>

Attempt to read from the AsyncRead into buf. Read more
Source§

fn poll_read_vectored( self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &mut [IoSliceMut<'_>], ) -> Poll<Result<usize, Error>>

Attempt to read from the AsyncRead into bufs using vectored IO operations. Read more

Auto Trait Implementations§

§

impl<R, B> Freeze for BoxReader<R, B>
where R: Freeze, B: Freeze,

§

impl<R, B> RefUnwindSafe for BoxReader<R, B>

§

impl<R, B> Send for BoxReader<R, B>
where R: Send, B: Send,

§

impl<R, B> Sync for BoxReader<R, B>
where R: Sync, B: Sync,

§

impl<R, B> Unpin for BoxReader<R, B>
where R: Unpin, B: Unpin,

§

impl<R, B> UnwindSafe for BoxReader<R, B>
where R: UnwindSafe, B: 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.

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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V