Struct product_os_capabilities::Features
source · pub struct Features { /* private fields */ }
Implementations§
source§impl Features
impl Features
pub fn new() -> Self
pub async fn add( &mut self, feature_arc: Arc<dyn Feature>, base_path: String, router: &mut ProductOSRouter, )
pub async fn add_mut( &mut self, feature_arc_mut: Arc<Mutex<dyn Feature>>, base_path: String, router: &mut ProductOSRouter, )
pub fn remove(&mut self, identifier: String)
pub fn get(&self, identifier: &str) -> Option<&RegistryFeature>
pub fn find( &self, path: &str, ) -> Option<(&RegistryFeature, BTreeMap<String, String>)>
pub fn setup_router(&mut self)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Features
impl<'de> Deserialize<'de> for Features
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 Features
impl !RefUnwindSafe for Features
impl Send for Features
impl Sync for Features
impl Unpin for Features
impl !UnwindSafe for Features
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