pub struct ClientConnection {
pub client_capabilities: Option<ClientCapabilities>,
pub client_info: Option<Implementation>,
pub initialized: bool,
}
Expand description
Represents a connected MCP client.
Tracks information about a client that has connected to the server, including its capabilities, info, and initialization state.
Fields§
§client_capabilities: Option<ClientCapabilities>
The capabilities reported by the client
client_info: Option<Implementation>
Information about the client implementation
initialized: bool
Whether the client has completed initialization
Trait Implementations§
Source§impl Clone for ClientConnection
impl Clone for ClientConnection
Source§fn clone(&self) -> ClientConnection
fn clone(&self) -> ClientConnection
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ClientConnection
impl RefUnwindSafe for ClientConnection
impl Send for ClientConnection
impl Sync for ClientConnection
impl Unpin for ClientConnection
impl UnwindSafe for ClientConnection
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