pub struct MnemoGrpcServer { /* private fields */ }Expand description
gRPC server backed by a shared MnemoEngine.
Implementations§
Source§impl MnemoGrpcServer
impl MnemoGrpcServer
Sourcepub fn new(engine: Arc<MnemoEngine>) -> Self
pub fn new(engine: Arc<MnemoEngine>) -> Self
Create a new server wrapping the given engine.
Trait Implementations§
Source§impl Clone for MnemoGrpcServer
impl Clone for MnemoGrpcServer
Source§fn clone(&self) -> MnemoGrpcServer
fn clone(&self) -> MnemoGrpcServer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl MnemoService for MnemoGrpcServer
impl MnemoService for MnemoGrpcServer
Source§fn remember<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoRememberRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoRememberResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remember<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoRememberRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoRememberResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/ Store a new memory.
Source§fn recall<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoRecallRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoRecallResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recall<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoRecallRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoRecallResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/ Recall memories matching a query.
Source§fn forget<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoForgetRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoForgetResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn forget<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoForgetRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoForgetResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/ Forget (delete/decay/archive) memories by ID.
Source§fn health<'life0, 'async_trait>(
&'life0 self,
_request: Request<HealthRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HealthResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn health<'life0, 'async_trait>(
&'life0 self,
_request: Request<HealthRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HealthResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/ Health check.
/ Share a memory with another agent.
Source§fn checkpoint<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoCheckpointRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoCheckpointResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn checkpoint<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoCheckpointRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoCheckpointResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/ Create a checkpoint for the current state.
Source§fn branch<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoBranchRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoBranchResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn branch<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoBranchRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoBranchResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/ Fork a new branch from an existing checkpoint.
Source§fn merge<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoMergeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoMergeResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn merge<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoMergeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoMergeResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/ Merge a source branch into a target branch.
Source§fn replay<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoReplayRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoReplayResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn replay<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoReplayRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoReplayResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/ Replay state from a checkpoint.
Source§fn delegate<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoDelegateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoDelegateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delegate<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoDelegateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoDelegateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/ Delegate permissions to another agent.
Source§fn verify<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoVerifyRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoVerifyResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn verify<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoVerifyRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoVerifyResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/ Verify hash chain integrity.
Source§fn forget_subject<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoForgetSubjectRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoForgetSubjectResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn forget_subject<'life0, 'async_trait>(
&'life0 self,
request: Request<ProtoForgetSubjectRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoForgetSubjectResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/ GDPR / DPDPA-aligned subject erasure by
subject:<id> tag.Auto Trait Implementations§
impl Freeze for MnemoGrpcServer
impl !RefUnwindSafe for MnemoGrpcServer
impl Send for MnemoGrpcServer
impl Sync for MnemoGrpcServer
impl Unpin for MnemoGrpcServer
impl UnsafeUnpin for MnemoGrpcServer
impl !UnwindSafe for MnemoGrpcServer
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> 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>
Converts
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>
Converts
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)
Converts
&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)
Converts
&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
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 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>
Wrap the input message
T in a tonic::Request