pub struct ClientInfoRenderer { /* private fields */ }Expand description
Renders client connection information.
Displays client name, version, and capabilities in a beautiful format when a client connects or disconnects from the server.
Implementations§
Source§impl ClientInfoRenderer
impl ClientInfoRenderer
Sourcepub fn new(context: DisplayContext) -> Self
pub fn new(context: DisplayContext) -> Self
Create a new renderer with explicit display context.
Sourcepub fn render_connected(&self, client: &ClientInfo, console: &FastMcpConsole)
pub fn render_connected(&self, client: &ClientInfo, console: &FastMcpConsole)
Render client connection notification.
Sourcepub fn render_connected_with_caps(
&self,
client: &ClientInfo,
capabilities: &ClientCapabilities,
console: &FastMcpConsole,
)
pub fn render_connected_with_caps( &self, client: &ClientInfo, capabilities: &ClientCapabilities, console: &FastMcpConsole, )
Render client connection with capabilities.
Sourcepub fn render_disconnected(&self, client: &ClientInfo, console: &FastMcpConsole)
pub fn render_disconnected(&self, client: &ClientInfo, console: &FastMcpConsole)
Render client disconnection notification.
Sourcepub fn render_disconnected_with_reason(
&self,
client: &ClientInfo,
reason: &str,
console: &FastMcpConsole,
)
pub fn render_disconnected_with_reason( &self, client: &ClientInfo, reason: &str, console: &FastMcpConsole, )
Render client disconnection with reason.
Sourcepub fn render_detail(&self, client: &ClientInfo, console: &FastMcpConsole)
pub fn render_detail(&self, client: &ClientInfo, console: &FastMcpConsole)
Render detailed client information panel.
Sourcepub fn render_detail_with_caps(
&self,
client: &ClientInfo,
capabilities: &ClientCapabilities,
console: &FastMcpConsole,
)
pub fn render_detail_with_caps( &self, client: &ClientInfo, capabilities: &ClientCapabilities, console: &FastMcpConsole, )
Render detailed client information with capabilities.
Trait Implementations§
Source§impl Clone for ClientInfoRenderer
impl Clone for ClientInfoRenderer
Source§fn clone(&self) -> ClientInfoRenderer
fn clone(&self) -> ClientInfoRenderer
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 Debug for ClientInfoRenderer
impl Debug for ClientInfoRenderer
Auto Trait Implementations§
impl Freeze for ClientInfoRenderer
impl RefUnwindSafe for ClientInfoRenderer
impl Send for ClientInfoRenderer
impl Sync for ClientInfoRenderer
impl Unpin for ClientInfoRenderer
impl UnwindSafe for ClientInfoRenderer
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).