pub struct Snapshot {
pub state: State,
pub error: Option<String>,
pub tools: Vec<Tool>,
pub has_resources: bool,
pub resources: Vec<Value>,
pub instructions: Option<String>,
}Expand description
What a connection knows of its server.
Fields§
§state: StateWhere it stands.
error: Option<String>Why it failed or dropped.
tools: Vec<Tool>The server’s tools.
has_resources: boolWhether the server offers resources.
resources: Vec<Value>Resources listed at the last connect, without MCP App resources.
instructions: Option<String>Server instructions from initialize.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Snapshot
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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