pub trait AsyncSeekStart {
// Required methods
fn start_seek(self: Pin<&mut Self>, position: u64) -> Result<()>;
fn poll_complete(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<()>>;
}
Expand description
AsyncSeek
narrowed to only allow seeking from start.
Required Methods§
sourcefn start_seek(self: Pin<&mut Self>, position: u64) -> Result<()>
fn start_seek(self: Pin<&mut Self>, position: u64) -> Result<()>
Same semantics as AsyncSeek::start_seek
, always passing position as the SeekFrom::Start
variant.
sourcefn poll_complete(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_complete(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Same semantics as AsyncSeek::poll_complete
, returning ()
instead of the new stream position.