Trait completion_io::AsyncSeekWith[][src]

pub trait AsyncSeekWith<'a> {
    type SeekFuture: CompletionFuture<Output = Result<u64>>;
    fn seek(&'a mut self, pos: SeekFrom) -> Self::SeekFuture;
}

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

Associated Types

type SeekFuture: CompletionFuture<Output = Result<u64>>[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

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> + ?Sized> AsyncSeekWith<'a> for &mut S[src]

type SeekFuture = S::SeekFuture

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

type SeekFuture = S::SeekFuture

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

type SeekFuture = Ready<Result<u64>>

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

type SeekFuture = SeekCursor<'a, T>

Loading content...

Implementors

Loading content...