pub struct StaticKnowledgeRegistry { /* private fields */ }Implementations§
Source§impl StaticKnowledgeRegistry
impl StaticKnowledgeRegistry
pub fn new() -> Self
pub fn with_pack( self, selector: impl Into<String>, pack: Arc<dyn KnowledgePack>, ) -> 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
Trait Implementations§
Source§impl Clone for StaticKnowledgeRegistry
impl Clone for StaticKnowledgeRegistry
Source§fn clone(&self) -> StaticKnowledgeRegistry
fn clone(&self) -> StaticKnowledgeRegistry
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 StaticKnowledgeRegistry
impl Default for StaticKnowledgeRegistry
Source§fn default() -> StaticKnowledgeRegistry
fn default() -> StaticKnowledgeRegistry
Returns the “default value” for a type. Read more
Source§impl KnowledgeRegistry for StaticKnowledgeRegistry
impl KnowledgeRegistry for StaticKnowledgeRegistry
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 StaticKnowledgeRegistry
impl !UnwindSafe for StaticKnowledgeRegistry
impl Freeze for StaticKnowledgeRegistry
impl Send for StaticKnowledgeRegistry
impl Sync for StaticKnowledgeRegistry
impl Unpin for StaticKnowledgeRegistry
impl UnsafeUnpin for StaticKnowledgeRegistry
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