pub enum LegacyCoreRequest {
Show 14 variants
Initialize(InitializeParams),
Completion(LegacyCompletionParams),
SamplingCreateMessage(CreateMessageParams),
ToolsList(ListToolsParams),
ToolsCall(CallToolParams),
ResourcesList(ListResourcesParams),
ResourceTemplatesList(ListResourceTemplatesParams),
ResourcesRead(ReadResourceParams),
ResourcesSubscribe(SubscribeResourceParams),
ResourcesUnsubscribe(UnsubscribeResourceParams),
PromptsList(ListPromptsParams),
PromptsGet(GetPromptParams),
SetLogLevel(SetLogLevelParams),
Ping,
}Expand description
Legacy core requests remain exact uses of the existing message structs. They are never reinterpreted as final requests.
Variants§
Initialize(InitializeParams)
initialize is unique to the legacy initialize-handshake era.
Completion(LegacyCompletionParams)
completion/complete.
SamplingCreateMessage(CreateMessageParams)
sampling/createMessage.
ToolsList(ListToolsParams)
tools/list.
ToolsCall(CallToolParams)
tools/call.
ResourcesList(ListResourcesParams)
resources/list.
ResourceTemplatesList(ListResourceTemplatesParams)
resources/templates/list.
ResourcesRead(ReadResourceParams)
resources/read.
ResourcesSubscribe(SubscribeResourceParams)
resources/subscribe.
ResourcesUnsubscribe(UnsubscribeResourceParams)
resources/unsubscribe.
PromptsList(ListPromptsParams)
prompts/list.
PromptsGet(GetPromptParams)
prompts/get.
SetLogLevel(SetLogLevelParams)
logging/setLevel.
Ping
ping, which has no legacy parameter object.
Implementations§
Trait Implementations§
Source§impl Clone for LegacyCoreRequest
impl Clone for LegacyCoreRequest
Source§fn clone(&self) -> LegacyCoreRequest
fn clone(&self) -> LegacyCoreRequest
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 moreAuto Trait Implementations§
impl Freeze for LegacyCoreRequest
impl RefUnwindSafe for LegacyCoreRequest
impl Send for LegacyCoreRequest
impl Sync for LegacyCoreRequest
impl Unpin for LegacyCoreRequest
impl UnsafeUnpin for LegacyCoreRequest
impl UnwindSafe for LegacyCoreRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).