pub enum McpProtocolVersion {
V2024_11_05,
V2025_03_26,
V2025_06_18,
}
Expand description
MCP Protocol versions
Variants§
V2024_11_05
Original protocol without streamable HTTP (2024-11-05)
V2025_03_26
Protocol including streamable HTTP (2025-03-26)
V2025_06_18
Protocol with structured _meta, cursor, progressToken, and elicitation (2025-06-18)
Implementations§
Source§impl McpProtocolVersion
impl McpProtocolVersion
Sourcepub fn supports_streamable_http(&self) -> bool
pub fn supports_streamable_http(&self) -> bool
Returns whether this version supports streamable HTTP
Sourcepub fn supports_meta_fields(&self) -> bool
pub fn supports_meta_fields(&self) -> bool
Returns whether this version supports _meta fields
Sourcepub fn supports_cursors(&self) -> bool
pub fn supports_cursors(&self) -> bool
Returns whether this version supports cursor-based pagination
Sourcepub fn supports_progress_tokens(&self) -> bool
pub fn supports_progress_tokens(&self) -> bool
Returns whether this version supports progress tokens
Sourcepub fn supports_elicitation(&self) -> bool
pub fn supports_elicitation(&self) -> bool
Returns whether this version supports elicitation
Sourcepub fn supported_features(&self) -> Vec<&'static str>
pub fn supported_features(&self) -> Vec<&'static str>
Get list of supported features for this version
Trait Implementations§
Source§impl Clone for McpProtocolVersion
impl Clone for McpProtocolVersion
Source§fn clone(&self) -> McpProtocolVersion
fn clone(&self) -> McpProtocolVersion
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 McpProtocolVersion
impl Debug for McpProtocolVersion
Source§impl Default for McpProtocolVersion
impl Default for McpProtocolVersion
Source§impl PartialEq for McpProtocolVersion
impl PartialEq for McpProtocolVersion
impl Copy for McpProtocolVersion
impl Eq for McpProtocolVersion
impl StructuralPartialEq for McpProtocolVersion
Auto Trait Implementations§
impl Freeze for McpProtocolVersion
impl RefUnwindSafe for McpProtocolVersion
impl Send for McpProtocolVersion
impl Sync for McpProtocolVersion
impl Unpin for McpProtocolVersion
impl UnwindSafe for McpProtocolVersion
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.