pub struct InstrumentedObjectStoreRegistry { /* private fields */ }Expand description
Provides access to InstrumentedObjectStore instances that record requests for reporting
Implementations§
Source§impl InstrumentedObjectStoreRegistry
impl InstrumentedObjectStoreRegistry
Sourcepub fn new() -> Self
pub fn new() -> Self
Returns a new InstrumentedObjectStoreRegistry that wraps the provided
ObjectStoreRegistry
pub fn with_profile_mode(self, mode: InstrumentedObjectStoreMode) -> Self
Sourcepub fn stores(&self) -> Vec<Arc<InstrumentedObjectStore>>
pub fn stores(&self) -> Vec<Arc<InstrumentedObjectStore>>
Provides access to all of the InstrumentedObjectStores managed by this
InstrumentedObjectStoreRegistry
Sourcepub fn instrument_mode(&self) -> InstrumentedObjectStoreMode
pub fn instrument_mode(&self) -> InstrumentedObjectStoreMode
Returns the current InstrumentedObjectStoreMode for this
InstrumentedObjectStoreRegistry
Sourcepub fn set_instrument_mode(&self, mode: InstrumentedObjectStoreMode)
pub fn set_instrument_mode(&self, mode: InstrumentedObjectStoreMode)
Sets the InstrumentedObjectStoreMode for this InstrumentedObjectStoreRegistry
Trait Implementations§
Source§impl ObjectStoreRegistry for InstrumentedObjectStoreRegistry
impl ObjectStoreRegistry for InstrumentedObjectStoreRegistry
Source§fn register_store(
&self,
url: &Url,
store: Arc<dyn ObjectStore>,
) -> Option<Arc<dyn ObjectStore>>
fn register_store( &self, url: &Url, store: Arc<dyn ObjectStore>, ) -> Option<Arc<dyn ObjectStore>>
If a store with the same key existed before, it is replaced and returned
Source§fn deregister_store(&self, url: &Url) -> Result<Arc<dyn ObjectStore>>
fn deregister_store(&self, url: &Url) -> Result<Arc<dyn ObjectStore>>
Deregister the store previously registered with the same key. Returns the
deregistered store if it existed.
Auto Trait Implementations§
impl !Freeze for InstrumentedObjectStoreRegistry
impl !RefUnwindSafe for InstrumentedObjectStoreRegistry
impl Send for InstrumentedObjectStoreRegistry
impl Sync for InstrumentedObjectStoreRegistry
impl Unpin for InstrumentedObjectStoreRegistry
impl !UnwindSafe for InstrumentedObjectStoreRegistry
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 moreCreates a shared type from an unshared type.