[][src]Struct pin_cursor::PinCursor

pub struct PinCursor<T> { /* fields omitted */ }

Methods

impl<T> PinCursor<T> where
    T: Unpin,
    Cursor<T>: Write + Read + Seek
[src]

pub fn wrap(c: Cursor<T>) -> Self[src]

pub fn unwrap(self) -> Cursor<T>[src]

pub fn position(&self) -> u64[src]

pub fn set_position(self: Pin<&mut Self>, pos: u64)[src]

pub fn write<'a>(
    self: Pin<&'a mut Self>,
    buf: &'a [u8]
) -> impl Future<Output = Result<usize>> + 'a
[src]

pub fn read<'a>(
    self: Pin<&'a mut Self>,
    buf: &'a mut [u8]
) -> impl Future<Output = Result<usize>> + 'a
[src]

pub fn seek(
    self: Pin<&mut Self>,
    pos: SeekFrom
) -> impl Future<Output = Result<u64>> + '_
[src]

Trait Implementations

impl<T> AsyncRead for PinCursor<T> where
    T: Unpin,
    Cursor<T>: Read
[src]

impl<T> AsyncSeek for PinCursor<T> where
    T: Unpin,
    Cursor<T>: Seek
[src]

impl<T> AsyncWrite for PinCursor<T> where
    T: Unpin,
    Cursor<T>: Write
[src]

impl<'__pin, T> Unpin for PinCursor<T> where
    __Origin<'__pin, T>: Unpin
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for PinCursor<T> where
    T: RefUnwindSafe

impl<T> Send for PinCursor<T> where
    T: Send

impl<T> Sync for PinCursor<T> where
    T: Sync

impl<T> UnwindSafe for PinCursor<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReadExt for T where
    T: AsyncRead + ?Sized
[src]

impl<T> SeekExt for T where
    T: AsyncSeek + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> WriteExt for T where
    T: AsyncWrite + ?Sized
[src]