pub struct CompositeKnowledgeRegistry { /* private fields */ }Implementations§
Source§impl CompositeKnowledgeRegistry
impl CompositeKnowledgeRegistry
pub fn new() -> Self
pub fn with_entry(self, entry: KnowledgePackEntry) -> Self
pub fn with_entries( self, entries: impl IntoIterator<Item = KnowledgePackEntry>, ) -> Self
pub fn is_empty(&self) -> bool
pub fn from_entries( entries: impl IntoIterator<Item = KnowledgePackEntry>, ) -> Self
Trait Implementations§
Source§impl Clone for CompositeKnowledgeRegistry
impl Clone for CompositeKnowledgeRegistry
Source§fn clone(&self) -> CompositeKnowledgeRegistry
fn clone(&self) -> CompositeKnowledgeRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for CompositeKnowledgeRegistry
impl Default for CompositeKnowledgeRegistry
Source§fn default() -> CompositeKnowledgeRegistry
fn default() -> CompositeKnowledgeRegistry
Returns the “default value” for a type. Read more
Source§impl KnowledgeRegistry for CompositeKnowledgeRegistry
impl KnowledgeRegistry for CompositeKnowledgeRegistry
fn list_packs<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<KnowledgePackSummary>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn resolve_pack<'life0, 'life1, 'async_trait>(
&'life0 self,
selector: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn KnowledgePack>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for CompositeKnowledgeRegistry
impl !UnwindSafe for CompositeKnowledgeRegistry
impl Freeze for CompositeKnowledgeRegistry
impl Send for CompositeKnowledgeRegistry
impl Sync for CompositeKnowledgeRegistry
impl Unpin for CompositeKnowledgeRegistry
impl UnsafeUnpin for CompositeKnowledgeRegistry
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