summaryrefslogtreecommitdiffstats
path: root/tokio/src/io/util/async_seek_ext.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/io/util/async_seek_ext.rs')
-rw-r--r--tokio/src/io/util/async_seek_ext.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tokio/src/io/util/async_seek_ext.rs b/tokio/src/io/util/async_seek_ext.rs
index 35bc94ee..351900bd 100644
--- a/tokio/src/io/util/async_seek_ext.rs
+++ b/tokio/src/io/util/async_seek_ext.rs
@@ -37,6 +37,12 @@ cfg_io_util! {
/// Creates a future which will seek an IO object, and then yield the
/// new position in the object and the object itself.
///
+ /// Equivalent to:
+ ///
+ /// ```ignore
+ /// async fn seek(&mut self, pos: SeekFrom) -> io::Result<u64>;
+ /// ```
+ ///
/// In the case of an error the buffer and the object will be discarded, with
/// the error yielded.
///