pub struct MnemoServiceClient<T> { /* private fields */ }Expand description
/ The core Mnemo gRPC service for memory operations.
Implementations§
Source§impl<T> MnemoServiceClient<T>where
T: GrpcService<Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> MnemoServiceClient<T>where
T: GrpcService<Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> MnemoServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<Body>, Response = Response<<T as GrpcService<Body>>::ResponseBody>>,
<T as Service<Request<Body>>>::Error: Into<StdError> + Send + Sync,
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
Sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
Sourcepub async fn remember(
&mut self,
request: impl IntoRequest<RememberRequest>,
) -> Result<Response<RememberResponse>, Status>
pub async fn remember( &mut self, request: impl IntoRequest<RememberRequest>, ) -> Result<Response<RememberResponse>, Status>
/ Store a new memory.
Sourcepub async fn recall(
&mut self,
request: impl IntoRequest<RecallRequest>,
) -> Result<Response<RecallResponse>, Status>
pub async fn recall( &mut self, request: impl IntoRequest<RecallRequest>, ) -> Result<Response<RecallResponse>, Status>
/ Recall memories matching a query.
Sourcepub async fn forget(
&mut self,
request: impl IntoRequest<ForgetRequest>,
) -> Result<Response<ForgetResponse>, Status>
pub async fn forget( &mut self, request: impl IntoRequest<ForgetRequest>, ) -> Result<Response<ForgetResponse>, Status>
/ Forget (delete/decay/archive) memories by ID.
Sourcepub async fn health(
&mut self,
request: impl IntoRequest<HealthRequest>,
) -> Result<Response<HealthResponse>, Status>
pub async fn health( &mut self, request: impl IntoRequest<HealthRequest>, ) -> Result<Response<HealthResponse>, Status>
/ Health check.
/ Share a memory with another agent.
Sourcepub async fn checkpoint(
&mut self,
request: impl IntoRequest<CheckpointRequest>,
) -> Result<Response<CheckpointResponse>, Status>
pub async fn checkpoint( &mut self, request: impl IntoRequest<CheckpointRequest>, ) -> Result<Response<CheckpointResponse>, Status>
/ Create a checkpoint for the current state.
Sourcepub async fn consolidate(
&mut self,
request: impl IntoRequest<ConsolidateRequest>,
) -> Result<Response<ConsolidateResponse>, Status>
pub async fn consolidate( &mut self, request: impl IntoRequest<ConsolidateRequest>, ) -> Result<Response<ConsolidateResponse>, Status>
/ Consolidate related memories into one revisable topic document.
Sourcepub async fn branch(
&mut self,
request: impl IntoRequest<BranchRequest>,
) -> Result<Response<BranchResponse>, Status>
pub async fn branch( &mut self, request: impl IntoRequest<BranchRequest>, ) -> Result<Response<BranchResponse>, Status>
/ Fork a new branch from an existing checkpoint.
Sourcepub async fn merge(
&mut self,
request: impl IntoRequest<MergeRequest>,
) -> Result<Response<MergeResponse>, Status>
pub async fn merge( &mut self, request: impl IntoRequest<MergeRequest>, ) -> Result<Response<MergeResponse>, Status>
/ Merge a source branch into a target branch.
Sourcepub async fn replay(
&mut self,
request: impl IntoRequest<ReplayRequest>,
) -> Result<Response<ReplayResponse>, Status>
pub async fn replay( &mut self, request: impl IntoRequest<ReplayRequest>, ) -> Result<Response<ReplayResponse>, Status>
/ Replay state from a checkpoint.
Sourcepub async fn delegate(
&mut self,
request: impl IntoRequest<DelegateRequest>,
) -> Result<Response<DelegateResponse>, Status>
pub async fn delegate( &mut self, request: impl IntoRequest<DelegateRequest>, ) -> Result<Response<DelegateResponse>, Status>
/ Delegate permissions to another agent.
Sourcepub async fn verify(
&mut self,
request: impl IntoRequest<VerifyRequest>,
) -> Result<Response<VerifyResponse>, Status>
pub async fn verify( &mut self, request: impl IntoRequest<VerifyRequest>, ) -> Result<Response<VerifyResponse>, Status>
/ Verify hash chain integrity.
Sourcepub async fn trajectory_audit(
&mut self,
request: impl IntoRequest<TrajectoryAuditRequest>,
) -> Result<Response<TrajectoryAuditResponse>, Status>
pub async fn trajectory_audit( &mut self, request: impl IntoRequest<TrajectoryAuditRequest>, ) -> Result<Response<TrajectoryAuditResponse>, Status>
/ GEM-aligned trajectory-correctness audit (arXiv:2605.26252). / Complements Verify on the orthogonal trajectory axis.
Sourcepub async fn forget_subject(
&mut self,
request: impl IntoRequest<ForgetSubjectRequest>,
) -> Result<Response<ForgetSubjectResponse>, Status>
pub async fn forget_subject( &mut self, request: impl IntoRequest<ForgetSubjectRequest>, ) -> Result<Response<ForgetSubjectResponse>, Status>
/ GDPR / DPDPA-aligned subject erasure by subject:<id> tag.
Trait Implementations§
Source§impl<T: Clone> Clone for MnemoServiceClient<T>
impl<T: Clone> Clone for MnemoServiceClient<T>
Source§fn clone(&self) -> MnemoServiceClient<T>
fn clone(&self) -> MnemoServiceClient<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for MnemoServiceClient<T>
impl<T> RefUnwindSafe for MnemoServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for MnemoServiceClient<T>where
T: Send,
impl<T> Sync for MnemoServiceClient<T>where
T: Sync,
impl<T> Unpin for MnemoServiceClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for MnemoServiceClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for MnemoServiceClient<T>where
T: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> Fruit for T
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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request