Trait completion::io::AsyncSeekWith [−][src]
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.
Required methods
pub fn seek(&'a mut self, pos: SeekFrom) -> Self::SeekFuture
[src]
Seek to an offset in bytes in a stream.
Implementations on Foreign Types
impl<'a, S> AsyncSeekWith<'a> for Box<S, Global> where
S: AsyncSeekWith<'a> + ?Sized,
[src]
S: AsyncSeekWith<'a> + ?Sized,
type SeekFuture = <S as AsyncSeekWith<'a>>::SeekFuture
pub fn seek(
&'a mut self,
pos: SeekFrom
) -> <Box<S, Global> as AsyncSeekWith<'a>>::SeekFuture
[src]
&'a mut self,
pos: SeekFrom
) -> <Box<S, Global> as AsyncSeekWith<'a>>::SeekFuture
impl<'a, '_, S> AsyncSeekWith<'a> for &'_ mut S where
S: AsyncSeekWith<'a> + ?Sized,
[src]
S: AsyncSeekWith<'a> + ?Sized,
type SeekFuture = <S as AsyncSeekWith<'a>>::SeekFuture
pub fn seek(
&'a mut self,
pos: SeekFrom
) -> <&'_ mut S as AsyncSeekWith<'a>>::SeekFuture
[src]
&'a mut self,
pos: SeekFrom
) -> <&'_ mut S as AsyncSeekWith<'a>>::SeekFuture
impl<'a, T> AsyncSeekWith<'a> for Cursor<T> where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
type SeekFuture = SeekCursor<'a, T>
pub fn seek(
&'a mut self,
pos: SeekFrom
) -> <Cursor<T> as AsyncSeekWith<'a>>::SeekFuture
[src]
&'a mut self,
pos: SeekFrom
) -> <Cursor<T> as AsyncSeekWith<'a>>::SeekFuture
impl<'a> AsyncSeekWith<'a> for Empty
[src]
type SeekFuture = Ready<Result<u64, Error>>
pub fn seek(
&'a mut self,
_pos: SeekFrom
) -> <Empty as AsyncSeekWith<'a>>::SeekFuture
[src]
&'a mut self,
_pos: SeekFrom
) -> <Empty as AsyncSeekWith<'a>>::SeekFuture