Struct product_os_capabilities::Services
source · pub struct Services { /* private fields */ }
Implementations§
source§impl Services
impl Services
pub fn new() -> Self
pub async fn add(&mut self, service_arc: Arc<dyn Service>)
pub async fn add_mut(&mut self, service_arc_mut: Arc<Mutex<dyn Service>>)
pub fn remove(&mut self, identifier: String)
pub fn get(&self, identifier: &str) -> Option<&RegistryService>
pub fn get_mut(&mut self, identifier: &str) -> Option<&mut RegistryService>
pub fn find(&self, key: String) -> Option<&RegistryService>
pub fn list(&self) -> Iter<'_, String, RegistryService>
pub fn list_mut(&mut self) -> IterMut<'_, String, RegistryService>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Services
impl<'de> Deserialize<'de> for Services
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Services
impl !RefUnwindSafe for Services
impl Send for Services
impl Sync for Services
impl Unpin for Services
impl !UnwindSafe for Services
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