pub struct S3RangeReaderAsync { /* private fields */ }Expand description
Async S3 range reader using object_store
Implementations§
Source§impl S3RangeReaderAsync
impl S3RangeReaderAsync
Sourcepub async fn new(url: &str) -> AnyResult<Self>
pub async fn new(url: &str) -> AnyResult<Self>
Create a new S3 range reader from an S3 URL
§Example
use geocog::S3RangeReaderAsync;
let reader = S3RangeReaderAsync::new("s3://my-bucket/data/file.tif").await?;
println!("File size: {} bytes", reader.size());Sourcepub async fn from_config(config: S3Config) -> AnyResult<Self>
pub async fn from_config(config: S3Config) -> AnyResult<Self>
Create a new S3 range reader from a config
Auto Trait Implementations§
impl Freeze for S3RangeReaderAsync
impl !RefUnwindSafe for S3RangeReaderAsync
impl Send for S3RangeReaderAsync
impl Sync for S3RangeReaderAsync
impl Unpin for S3RangeReaderAsync
impl !UnwindSafe for S3RangeReaderAsync
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more