pub struct NegotiatedExtension { /* private fields */ }Expand description
The settings each peer declared for one negotiated extension.
Implementations§
Source§impl NegotiatedExtension
impl NegotiatedExtension
Sourcepub fn client_settings(&self) -> &Value
pub fn client_settings(&self) -> &Value
Settings advertised by the MCP client.
Sourcepub fn server_settings(&self) -> &Value
pub fn server_settings(&self) -> &Value
Settings advertised by the MCP server.
Trait Implementations§
Source§impl Clone for NegotiatedExtension
impl Clone for NegotiatedExtension
Source§fn clone(&self) -> NegotiatedExtension
fn clone(&self) -> NegotiatedExtension
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NegotiatedExtension
impl Debug for NegotiatedExtension
Source§impl PartialEq for NegotiatedExtension
impl PartialEq for NegotiatedExtension
impl StructuralPartialEq for NegotiatedExtension
Auto Trait Implementations§
impl Freeze for NegotiatedExtension
impl RefUnwindSafe for NegotiatedExtension
impl Send for NegotiatedExtension
impl Sync for NegotiatedExtension
impl Unpin for NegotiatedExtension
impl UnsafeUnpin for NegotiatedExtension
impl UnwindSafe for NegotiatedExtension
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