Skip to content

Commit

Permalink
feat: Export SeekableReader (#212)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored Apr 2, 2022
1 parent 242cd1c commit 446dcfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/io_util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ pub(crate) use http_body::HttpBodyWriter;

mod seekable_reader;
pub use seekable_reader::seekable_read;
pub use seekable_reader::SeekableReader;
1 change: 1 addition & 0 deletions src/io_util/seekable_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pub fn seekable_read(o: &Object, range: impl RangeBounds<u64>) -> SeekableReader
}
}

/// SeekableReader implement `AsyncRead` and `AsyncSeek`.
pub struct SeekableReader {
acc: Arc<dyn Accessor>,
path: String,
Expand Down

0 comments on commit 446dcfb

Please sign in to comment.