Files
aho_corasick
arrayvec
ash
extensions
experimental
ext
khr
mvk
nv
atom
atty
base64
bitflags
byteorder
cfg_if
copyless
env_logger
filter
fmt
futures
futures_channel
futures_core
futures_executor
futures_io
futures_macro
futures_sink
futures_task
futures_util
async_await
future
future
try_future
io
lock
sink
stream
futures_unordered
stream
buffer_unordered.rsbuffered.rscatch_unwind.rschain.rschunks.rscollect.rsconcat.rsenumerate.rsfilter.rsfilter_map.rsflatten.rsfold.rsfor_each.rsfor_each_concurrent.rsforward.rsfuse.rsinto_future.rsmap.rsmod.rsnext.rspeek.rsready_chunks.rsscan.rsselect_next_some.rsskip.rsskip_while.rssplit.rstake.rstake_until.rstake_while.rsthen.rszip.rs
try_stream
task
fxhash
gfx_backend_empty
gfx_backend_vulkan
gfx_descriptor
gfx_hal
command
pso
queue
gfx_memory
hibitset
humantime
lazy_static
libc
unix
libloading
lock_api
log
memchr
naga
back
front
proc
num_traits
once_cell
parking_lot
parking_lot_core
peek_poke
peek_poke_derive
pin_project
pin_project_internal
pin_utils
proc_macro2
proc_macro_hack
proc_macro_nested
quick_error
quote
raw_window_handle
regex
regex_syntax
ast
hir
unicode_tables
ron
scopeguard
serde
de
private
ser
serde_derive
slab
smallvec
spirv_headers
syn
attr.rsbigint.rsbuffer.rscustom_keyword.rscustom_punctuation.rsdata.rsderive.rsdiscouraged.rserror.rsexport.rsexpr.rsext.rsfile.rsgenerics.rsgroup.rsident.rsitem.rslib.rslifetime.rslit.rslookahead.rsmac.rsmacros.rsop.rsparse.rsparse_macro_input.rsparse_quote.rspat.rspath.rsprint.rspunctuated.rssealed.rsspan.rsspanned.rsstmt.rsthread.rstoken.rstt.rsty.rsverbatim.rs
synstructure
termcolor
thread_local
typed_arena
unicode_xid
vec_map
wgpu
wgpu_core
command
device
track
wgpu_types
x11
>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
use crate::io::{AsyncSeek, SeekFrom}; use futures_core::future::Future; use futures_core::task::{Context, Poll}; use std::io; use std::pin::Pin; /// Future for the [`seek`](crate::io::AsyncSeekExt::seek) method. #[derive(Debug)] #[must_use = "futures do nothing unless you `.await` or poll them"] pub struct Seek<'a, S: ?Sized> { seek: &'a mut S, pos: SeekFrom, } impl<S: ?Sized + Unpin> Unpin for Seek<'_, S> {} impl<'a, S: AsyncSeek + ?Sized + Unpin> Seek<'a, S> { pub(super) fn new(seek: &'a mut S, pos: SeekFrom) -> Self { Self { seek, pos } } } impl<S: AsyncSeek + ?Sized + Unpin> Future for Seek<'_, S> { type Output = io::Result<u64>; fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { let this = &mut *self; Pin::new(&mut this.seek).poll_seek(cx, this.pos) } }