Trait completion::io::AsyncSeekWith[][src]

pub trait AsyncSeekWith<'a> {
    type SeekFuture: CompletionFuture;
    pub fn seek(&'a mut self, pos: SeekFrom) -> Self::SeekFuture;
}
This is supported on crate feature std only.

A cursor which can be moved within a stream of bytes with a specific lifetime.

Associated Types

type SeekFuture: CompletionFuture[src]

Future that seeks to an offset a stream. If successful, resolves to the new position from the start of the stream.

Loading content...

Required methods

pub fn seek(&'a mut self, pos: SeekFrom) -> Self::SeekFuture[src]

Seek to an offset in bytes in a stream.

Loading content...

Implementations on Foreign Types

impl<'a, S> AsyncSeekWith<'a> for Box<S, Global> where
    S: AsyncSeekWith<'a> + ?Sized
[src]

type SeekFuture = <S as AsyncSeekWith<'a>>::SeekFuture

impl<'a, '_, S> AsyncSeekWith<'a> for &'_ mut S where
    S: AsyncSeekWith<'a> + ?Sized
[src]

type SeekFuture = <S as AsyncSeekWith<'a>>::SeekFuture

impl<'a, T> AsyncSeekWith<'a> for Cursor<T> where
    T: AsRef<[u8]>, 
[src]

type SeekFuture = SeekCursor<'a, T>

impl<'a> AsyncSeekWith<'a> for Empty[src]

type SeekFuture = Ready<Result<u64, Error>>

Loading content...

Implementors

Loading content...