pub struct HTTComponentRegistry { /* private fields */ }Expand description
Standalone implementation of ComponentRegistry for use in HTT without GSD
Implementations§
Trait Implementations§
Source§impl ComponentRegistry for HTTComponentRegistry
impl ComponentRegistry for HTTComponentRegistry
Source§fn register<T: 'static + Send + Sync>(
&mut self,
name: &str,
component: Arc<RwLock<T>>,
) -> Result<(), RegistryError>
fn register<T: 'static + Send + Sync>( &mut self, name: &str, component: Arc<RwLock<T>>, ) -> Result<(), RegistryError>
Register a component with the given name
Source§fn get<T: 'static + Send + Sync>(&self, name: &str) -> Option<Arc<RwLock<T>>>
fn get<T: 'static + Send + Sync>(&self, name: &str) -> Option<Arc<RwLock<T>>>
Get a component by name
Auto Trait Implementations§
impl Freeze for HTTComponentRegistry
impl RefUnwindSafe for HTTComponentRegistry
impl Send for HTTComponentRegistry
impl Sync for HTTComponentRegistry
impl Unpin for HTTComponentRegistry
impl UnsafeUnpin for HTTComponentRegistry
impl UnwindSafe for HTTComponentRegistry
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