pub struct MemoryMcpService;Expand description
ServiceDescriptor impl that advertises this crate’s 11 memory tools.
Why: Lets open-mpm link trusty-memory-mcp directly and include its
tools in a unified rpc.discover document without bespoke glue code.
What: Wraps the existing tool definitions and the per-tool scope
mapping behind the shared trait. The struct is unit-like — there is
no per-instance state — so callers can construct it with
MemoryMcpService at the call site.
Test: tests::tools_returns_eleven, tests::scopes_for_read_tool,
tests::scopes_for_write_tool, tests::name_returns_trusty_memory.
Trait Implementations§
Source§impl Clone for MemoryMcpService
impl Clone for MemoryMcpService
Source§fn clone(&self) -> MemoryMcpService
fn clone(&self) -> MemoryMcpService
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 Debug for MemoryMcpService
impl Debug for MemoryMcpService
Source§impl Default for MemoryMcpService
impl Default for MemoryMcpService
Source§fn default() -> MemoryMcpService
fn default() -> MemoryMcpService
Returns the “default value” for a type. Read more
Source§impl ServiceDescriptor for MemoryMcpService
impl ServiceDescriptor for MemoryMcpService
Source§fn name(&self) -> &str
fn name(&self) -> &str
Stable service identifier (e.g.
"trusty-memory"); also emitted as
the x-service extension on every method it contributes.Source§fn version(&self) -> &str
fn version(&self) -> &str
Service version string (semver recommended); surfaced for diagnostic
tooling but not currently merged into the top-level OpenRPC
info.impl Copy for MemoryMcpService
Auto Trait Implementations§
impl Freeze for MemoryMcpService
impl RefUnwindSafe for MemoryMcpService
impl Send for MemoryMcpService
impl Sync for MemoryMcpService
impl Unpin for MemoryMcpService
impl UnsafeUnpin for MemoryMcpService
impl UnwindSafe for MemoryMcpService
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> 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