pub struct MrtrRequest { /* private fields */ }Expand description
MRTR continuation values supplied on a retry of the original request.
The router inserts this value into crate::RequestContext for
tools/call, prompts/get, and resources/read. Handlers can use
RequestContext::mrtr or the convenience
accessors on the context.
Implementations§
Source§impl MrtrRequest
impl MrtrRequest
Sourcepub fn input_responses(&self) -> Option<&InputResponses>
pub fn input_responses(&self) -> Option<&InputResponses>
Client responses keyed by the identifiers from the prior
inputRequests map.
Sourcepub fn request_state(&self) -> Option<&str>
pub fn request_state(&self) -> Option<&str>
Opaque continuation token echoed by the client.
Sourcepub fn into_parts(self) -> (Option<InputResponses>, Option<String>)
pub fn into_parts(self) -> (Option<InputResponses>, Option<String>)
Consume the continuation values.
Trait Implementations§
Source§impl Clone for MrtrRequest
impl Clone for MrtrRequest
Source§fn clone(&self) -> MrtrRequest
fn clone(&self) -> MrtrRequest
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 MrtrRequest
impl Debug for MrtrRequest
Source§impl Default for MrtrRequest
impl Default for MrtrRequest
Source§fn default() -> MrtrRequest
fn default() -> MrtrRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MrtrRequest
impl RefUnwindSafe for MrtrRequest
impl Send for MrtrRequest
impl Sync for MrtrRequest
impl Unpin for MrtrRequest
impl UnsafeUnpin for MrtrRequest
impl UnwindSafe for MrtrRequest
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