Struct RandomBlobAsyncReadSeekAdapter

Source
pub struct RandomBlobAsyncReadSeekAdapter<'r, R: RandomReadBlobAsync + 'r> { /* private fields */ }

Implementations§

Source§

impl<'r, R: RandomReadBlobAsync + 'r> RandomBlobAsyncReadSeekAdapter<'r, R>

Source

pub const fn new(inner: &'r R) -> Self

Source

pub const fn with_pos(inner: &'r R, pos: u64) -> Self

Trait Implementations§

Source§

impl<'r, R: RandomReadBlobAsync + 'r> AsyncRead for RandomBlobAsyncReadSeekAdapter<'r, R>

Source§

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

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

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

impl<'r, R: RandomReadBlobAsync + 'r> AsyncSeek for RandomBlobAsyncReadSeekAdapter<'r, R>

Source§

fn poll_seek( self: Pin<&mut Self>, _cx: &mut Context<'_>, pos: SeekFrom, ) -> Poll<Result<u64>>

Attempt to seek to an offset, in bytes, in a stream. Read more
Source§

impl<'pin, 'r, R: RandomReadBlobAsync + 'r> Unpin for RandomBlobAsyncReadSeekAdapter<'r, R>
where PinnedFieldsOf<__RandomBlobAsyncReadSeekAdapter<'pin, 'r, R>>: Unpin,

Auto Trait Implementations§

§

impl<'r, R> Freeze for RandomBlobAsyncReadSeekAdapter<'r, R>
where <R as RandomReadBlobAsync>::ReadFuture<'r, 'static>: Freeze, <R as RandomReadBlobAsync>::ReadVecFuture<'r, 'static, 'static>: Freeze,

§

impl<'r, R> RefUnwindSafe for RandomBlobAsyncReadSeekAdapter<'r, R>
where R: RefUnwindSafe, <R as RandomReadBlobAsync>::ReadFuture<'r, 'static>: RefUnwindSafe, <R as RandomReadBlobAsync>::ReadVecFuture<'r, 'static, 'static>: RefUnwindSafe,

§

impl<'r, R> Send for RandomBlobAsyncReadSeekAdapter<'r, R>
where R: Sync, <R as RandomReadBlobAsync>::ReadFuture<'r, 'static>: Send, <R as RandomReadBlobAsync>::ReadVecFuture<'r, 'static, 'static>: Send,

§

impl<'r, R> Sync for RandomBlobAsyncReadSeekAdapter<'r, R>
where R: Sync, <R as RandomReadBlobAsync>::ReadFuture<'r, 'static>: Sync, <R as RandomReadBlobAsync>::ReadVecFuture<'r, 'static, 'static>: Sync,

§

impl<'r, R> UnwindSafe for RandomBlobAsyncReadSeekAdapter<'r, R>
where R: RefUnwindSafe, <R as RandomReadBlobAsync>::ReadFuture<'r, 'static>: UnwindSafe, <R as RandomReadBlobAsync>::ReadVecFuture<'r, 'static, 'static>: 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, 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.