pub struct InstanceStore { /* private fields */ }
Implementations§
Source§impl InstanceStore
impl InstanceStore
pub fn new() -> Self
pub fn add(&self, boxable: impl BoxableInstance) -> Option<String>
pub fn get<T: BoxableInstance>(&self, id: &str) -> Option<Arc<T>>
pub fn get_with_optional_id<T: BoxableInstance>( &self, id: Option<&String>, ) -> Option<Arc<T>>
pub fn remove(&self, id: &str) -> Option<BoxedInstance>
pub fn remove_all(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for InstanceStore
impl RefUnwindSafe for InstanceStore
impl Send for InstanceStore
impl Sync for InstanceStore
impl Unpin for InstanceStore
impl UnwindSafe for InstanceStore
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