pub struct StaticMcpEnvironmentResolver { /* private fields */ }Expand description
Hermetic map-backed resolver for embedders and tests.
Implementations§
Trait Implementations§
Source§impl Clone for StaticMcpEnvironmentResolver
impl Clone for StaticMcpEnvironmentResolver
Source§impl Debug for StaticMcpEnvironmentResolver
impl Debug for StaticMcpEnvironmentResolver
Source§impl McpEnvironmentResolver for StaticMcpEnvironmentResolver
impl McpEnvironmentResolver for StaticMcpEnvironmentResolver
Source§fn resolve(
&self,
name: &str,
) -> Result<Option<McpEnvironmentValue>, McpEnvironmentError>
fn resolve( &self, name: &str, ) -> Result<Option<McpEnvironmentValue>, McpEnvironmentError>
Resolves one exact name at process-spawn time. Read more
Auto Trait Implementations§
impl Freeze for StaticMcpEnvironmentResolver
impl RefUnwindSafe for StaticMcpEnvironmentResolver
impl Send for StaticMcpEnvironmentResolver
impl Sync for StaticMcpEnvironmentResolver
impl Unpin for StaticMcpEnvironmentResolver
impl UnsafeUnpin for StaticMcpEnvironmentResolver
impl UnwindSafe for StaticMcpEnvironmentResolver
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