pub struct ObjectStoreWrapper { /* private fields */ }Available on crate feature
object_store only.Expand description
A wrapper around an ObjectStore that implements the AsyncHttpRangeClient trait.
Implementations§
Source§impl ObjectStoreWrapper
impl ObjectStoreWrapper
Sourcepub fn new(store: Arc<dyn ObjectStore>, location: Path) -> Self
pub fn new(store: Arc<dyn ObjectStore>, location: Path) -> Self
Creates a new ObjectStoreWrapper with the given store and location.
Trait Implementations§
Source§impl AsyncHttpRangeClient for ObjectStoreWrapper
impl AsyncHttpRangeClient for ObjectStoreWrapper
Source§fn get_range<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_url: &'life1 str,
range: &'life2 str,
) -> Pin<Box<dyn Future<Output = HTTPRangeClientResult<Bytes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_range<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_url: &'life1 str,
range: &'life2 str,
) -> Pin<Box<dyn Future<Output = HTTPRangeClientResult<Bytes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Send a GET range request
Source§fn head_response_header<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_url: &'life1 str,
header: &'life2 str,
) -> Pin<Box<dyn Future<Output = HTTPRangeClientResult<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn head_response_header<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_url: &'life1 str,
header: &'life2 str,
) -> Pin<Box<dyn Future<Output = HTTPRangeClientResult<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Send a HEAD request and return response header value
Source§impl Clone for ObjectStoreWrapper
impl Clone for ObjectStoreWrapper
Source§fn clone(&self) -> ObjectStoreWrapper
fn clone(&self) -> ObjectStoreWrapper
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ObjectStoreWrapper
impl !UnwindSafe for ObjectStoreWrapper
impl Freeze for ObjectStoreWrapper
impl Send for ObjectStoreWrapper
impl Sync for ObjectStoreWrapper
impl Unpin for ObjectStoreWrapper
impl UnsafeUnpin for ObjectStoreWrapper
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