pub struct ClientSession {
pub pid: u32,
pub started: u64,
pub calls: u64,
pub ended: Option<u64>,
}Expand description
One MCP server session of a client: its process and start second identify
it, calls counts received tool calls (at least 1 after the first call),
ended is the exit second once the server wrote it.
Fields§
§pid: u32§started: u64§calls: u64§ended: Option<u64>Trait Implementations§
Source§impl Clone for ClientSession
impl Clone for ClientSession
Source§impl Debug for ClientSession
impl Debug for ClientSession
Source§impl<'de> Deserialize<'de> for ClientSession
impl<'de> Deserialize<'de> for ClientSession
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ClientSession
Source§impl PartialEq for ClientSession
impl PartialEq for ClientSession
Source§impl Serialize for ClientSession
impl Serialize for ClientSession
impl StructuralPartialEq for ClientSession
Auto Trait Implementations§
impl Forget for ClientSession
impl Freeze for ClientSession
impl Move for ClientSession
impl RefUnwindSafe for ClientSession
impl Send for ClientSession
impl Sync for ClientSession
impl Unpin for ClientSession
impl UnsafeUnpin for ClientSession
impl UnwindSafe for ClientSession
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