pub struct ControllerRegistry { /* private fields */ }
Expand description
Registry for managing registered controllers
Implementations§
Source§impl ControllerRegistry
impl ControllerRegistry
pub fn new() -> Self
pub fn register(&mut self, name: String, controller: Arc<dyn ElifController>)
pub fn get_controller(&self, name: &str) -> Option<&Arc<dyn ElifController>>
pub fn all_controllers( &self, ) -> impl Iterator<Item = (&String, &Arc<dyn ElifController>)>
pub fn controller_names(&self) -> Vec<&String>
Trait Implementations§
Source§impl Debug for ControllerRegistry
impl Debug for ControllerRegistry
Auto Trait Implementations§
impl Freeze for ControllerRegistry
impl !RefUnwindSafe for ControllerRegistry
impl Send for ControllerRegistry
impl Sync for ControllerRegistry
impl Unpin for ControllerRegistry
impl !UnwindSafe for ControllerRegistry
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