use completion_io::AsyncSeek;
mod stream_position;
pub use stream_position::StreamPosition;
pub trait AsyncSeekExt: AsyncSeek {
fn stream_position(&mut self) -> StreamPosition<'_, Self> {
StreamPosition::new(self)
}
}
impl<T: AsyncSeek + ?Sized> AsyncSeekExt for T {}