pub struct MockRemoteKnowledgeProvider { /* private fields */ }Expand description
Mock implementation for testing (will be replaced with network implementation)
Implementations§
Source§impl MockRemoteKnowledgeProvider
impl MockRemoteKnowledgeProvider
Sourcepub fn new(mock_kb: Arc<KnowledgeBase>) -> Self
pub fn new(mock_kb: Arc<KnowledgeBase>) -> Self
Create a new mock provider
Trait Implementations§
Source§impl RemoteKnowledgeProvider for MockRemoteKnowledgeProvider
impl RemoteKnowledgeProvider for MockRemoteKnowledgeProvider
Source§fn query_predicate<'life0, 'async_trait>(
&'life0 self,
request: QueryRequest,
) -> Pin<Box<dyn Future<Output = Result<QueryResponse, RemoteReasoningError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query_predicate<'life0, 'async_trait>(
&'life0 self,
request: QueryRequest,
) -> Pin<Box<dyn Future<Output = Result<QueryResponse, RemoteReasoningError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Query a predicate from remote peers
Source§fn discover_facts<'life0, 'async_trait>(
&'life0 self,
request: FactDiscoveryRequest,
) -> Pin<Box<dyn Future<Output = Result<FactDiscoveryResponse, RemoteReasoningError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn discover_facts<'life0, 'async_trait>(
&'life0 self,
request: FactDiscoveryRequest,
) -> Pin<Box<dyn Future<Output = Result<FactDiscoveryResponse, RemoteReasoningError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Discover facts across the network
Source§fn load_incremental<'life0, 'async_trait>(
&'life0 self,
request: IncrementalLoadRequest,
) -> Pin<Box<dyn Future<Output = Result<IncrementalLoadResponse, RemoteReasoningError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn load_incremental<'life0, 'async_trait>(
&'life0 self,
request: IncrementalLoadRequest,
) -> Pin<Box<dyn Future<Output = Result<IncrementalLoadResponse, RemoteReasoningError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Load facts incrementally
Source§fn resolve_goal<'life0, 'async_trait>(
&'life0 self,
request: GoalResolutionRequest,
) -> Pin<Box<dyn Future<Output = Result<GoalResolutionResponse, RemoteReasoningError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn resolve_goal<'life0, 'async_trait>(
&'life0 self,
request: GoalResolutionRequest,
) -> Pin<Box<dyn Future<Output = Result<GoalResolutionResponse, RemoteReasoningError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Resolve a goal using remote peers
Auto Trait Implementations§
impl Freeze for MockRemoteKnowledgeProvider
impl RefUnwindSafe for MockRemoteKnowledgeProvider
impl Send for MockRemoteKnowledgeProvider
impl Sync for MockRemoteKnowledgeProvider
impl Unpin for MockRemoteKnowledgeProvider
impl UnwindSafe for MockRemoteKnowledgeProvider
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more