pub struct DefaultObjectStoreRegistry { /* private fields */ }Expand description
An ObjectStoreRegistry that uses parse_url_opts to create stores based on the environment
Implementations§
Source§impl DefaultObjectStoreRegistry
impl DefaultObjectStoreRegistry
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new DefaultObjectStoreRegistry
Trait Implementations§
Source§impl Debug for DefaultObjectStoreRegistry
impl Debug for DefaultObjectStoreRegistry
Source§impl Default for DefaultObjectStoreRegistry
impl Default for DefaultObjectStoreRegistry
Source§fn default() -> DefaultObjectStoreRegistry
fn default() -> DefaultObjectStoreRegistry
Returns the “default value” for a type. Read more
Source§impl ObjectStoreRegistry for DefaultObjectStoreRegistry
impl ObjectStoreRegistry for DefaultObjectStoreRegistry
Source§fn register(
&self,
url: Url,
store: Arc<dyn ObjectStore>,
) -> Option<Arc<dyn ObjectStore>>
fn register( &self, url: Url, store: Arc<dyn ObjectStore>, ) -> Option<Arc<dyn ObjectStore>>
Register a new store for the provided store URL Read more
Source§fn resolve(&self, to_resolve: &Url) -> Result<(Arc<dyn ObjectStore>, Path)>
fn resolve(&self, to_resolve: &Url) -> Result<(Arc<dyn ObjectStore>, Path)>
Resolve an object URL Read more
Source§fn deregister(&self, url: &Url) -> Option<Arc<dyn ObjectStore>>
fn deregister(&self, url: &Url) -> Option<Arc<dyn ObjectStore>>
Deregister the store registered for exactly
url, returning it if present. Read moreAuto Trait Implementations§
impl !Freeze for DefaultObjectStoreRegistry
impl !RefUnwindSafe for DefaultObjectStoreRegistry
impl !UnwindSafe for DefaultObjectStoreRegistry
impl Send for DefaultObjectStoreRegistry
impl Sync for DefaultObjectStoreRegistry
impl Unpin for DefaultObjectStoreRegistry
impl UnsafeUnpin for DefaultObjectStoreRegistry
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