pub struct McpServerView { /* private fields */ }Expand description
One bounded safe MCP server projection for terminal and RPC hosts.
This intentionally excludes remote tool descriptions and annotations, executable details, environment values, stderr, and server result text.
Implementations§
Source§impl McpServerView
impl McpServerView
Sourcepub const fn server_id(&self) -> &McpServerId
pub const fn server_id(&self) -> &McpServerId
Returns the configured server identity.
Sourcepub const fn state(&self) -> McpServerState
pub const fn state(&self) -> McpServerState
Returns the host lifecycle state.
Sourcepub const fn code(&self) -> Option<McpErrorCode>
pub const fn code(&self) -> Option<McpErrorCode>
Returns the stable health diagnostic code.
Sourcepub const fn descriptor_digest(&self) -> Option<&McpDescriptorDigest>
pub const fn descriptor_digest(&self) -> Option<&McpDescriptorDigest>
Returns the frozen descriptor digest, when initialization completed.
Sourcepub const fn restart_count(&self) -> u32
pub const fn restart_count(&self) -> u32
Returns the bounded reconnect attempt count.
Trait Implementations§
Source§impl Clone for McpServerView
impl Clone for McpServerView
Source§impl Debug for McpServerView
impl Debug for McpServerView
impl Eq for McpServerView
Source§impl PartialEq for McpServerView
impl PartialEq for McpServerView
Source§impl Serialize for McpServerView
impl Serialize for McpServerView
impl StructuralPartialEq for McpServerView
Auto Trait Implementations§
impl Freeze for McpServerView
impl RefUnwindSafe for McpServerView
impl Send for McpServerView
impl Sync for McpServerView
impl Unpin for McpServerView
impl UnsafeUnpin for McpServerView
impl UnwindSafe for McpServerView
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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