pub struct KnowledgeRuntime { /* private fields */ }Implementations§
Source§impl KnowledgeRuntime
impl KnowledgeRuntime
pub fn new(result_cache_capacity: usize) -> Self
pub fn install_provider<F>( &self, kind: ProviderKind, datasource_id: DatasourceId, build: F, ) -> KnowledgeResult<Generation>
pub fn configure_result_cache( &self, enabled: bool, capacity: usize, ttl: Duration, )
pub fn current_generation(&self) -> Option<Generation>
pub fn snapshot(&self) -> RuntimeSnapshot
pub fn current_metadata_scope(&self) -> MetadataCacheScope
pub fn current_provider_kind(&self) -> Option<ProviderKind>
pub fn record_result_cache_hit(&self)
pub fn record_result_cache_miss(&self)
pub fn record_metadata_cache_hit(&self)
pub fn record_metadata_cache_miss(&self)
pub fn record_local_cache_hit(&self)
pub fn record_local_cache_miss(&self)
pub fn execute(&self, req: &QueryRequest) -> KnowledgeResult<QueryResponse>
Auto Trait Implementations§
impl !Freeze for KnowledgeRuntime
impl RefUnwindSafe for KnowledgeRuntime
impl Send for KnowledgeRuntime
impl Sync for KnowledgeRuntime
impl Unpin for KnowledgeRuntime
impl UnsafeUnpin for KnowledgeRuntime
impl UnwindSafe for KnowledgeRuntime
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