pub struct ComponentRegistry {
pub stores: Option<StoreBundle>,
pub blob_store: Option<Arc<dyn BlobStore>>,
/* private fields */
}Fields§
§stores: Option<StoreBundle>§blob_store: Option<Arc<dyn BlobStore>>Implementations§
Source§impl ComponentRegistry
impl ComponentRegistry
pub fn new() -> ComponentRegistry
pub fn with_stores(self, stores: StoreBundle) -> ComponentRegistry
pub fn with_blob_store( self, blob_store: Arc<dyn BlobStore>, ) -> ComponentRegistry
pub fn insert_named_component( &mut self, key: impl Into<String>, component: Arc<dyn Any + Send + Sync>, ) -> Option<Arc<dyn Any + Send + Sync>>
pub fn get_named_component( &self, key: &str, ) -> Option<Arc<dyn Any + Send + Sync>>
pub fn into_named_components( self, ) -> HashMap<String, Arc<dyn Any + Send + Sync>>
Trait Implementations§
Source§impl Default for ComponentRegistry
impl Default for ComponentRegistry
Source§fn default() -> ComponentRegistry
fn default() -> ComponentRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ComponentRegistry
impl !UnwindSafe for ComponentRegistry
impl Freeze for ComponentRegistry
impl Send for ComponentRegistry
impl Sync for ComponentRegistry
impl Unpin for ComponentRegistry
impl UnsafeUnpin for ComponentRegistry
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