pub struct McpState { /* private fields */ }Implementations§
Source§impl McpState
impl McpState
pub fn new( application: Arc<SomaApplication>, config: McpConfig, authorization_mode: AuthorizationMode, response_pages: ResponsePageStore, ) -> Self
pub fn application(&self) -> &SomaApplication
pub fn config(&self) -> &McpConfig
pub fn with_server_name(self, server_name: impl Into<String>) -> Self
pub fn response_pages(&self) -> &ResponsePageStore
pub fn execution_context( &self, principal: Option<Principal>, trace: Option<TraceContext>, ) -> ExecutionContext
Trait Implementations§
Auto Trait Implementations§
impl Freeze for McpState
impl !RefUnwindSafe for McpState
impl Send for McpState
impl Sync for McpState
impl Unpin for McpState
impl UnsafeUnpin for McpState
impl !UnwindSafe for McpState
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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