pub struct Draft;Expand description
The draft codec.
Trait Implementations§
Source§impl Codec for Draft
impl Codec for Draft
Source§type Wire = CallToolResult
type Wire = CallToolResult
The generated wire type for this revision. Read more
Source§fn version(&self) -> ProtocolVersion
fn version(&self) -> ProtocolVersion
The revision this codec speaks.
Source§fn capabilities(&self) -> FeatureProfile
fn capabilities(&self) -> FeatureProfile
What this revision can express, as a negotiated profile. Read more
Source§fn lower(
&self,
value: ToolResult,
policy: DegradePolicy,
report: &mut TranslationReport,
) -> Result<Self::Wire, LowerError>
fn lower( &self, value: ToolResult, policy: DegradePolicy, report: &mut TranslationReport, ) -> Result<Self::Wire, LowerError>
IR to wire. Read more
impl Copy for Draft
Auto Trait Implementations§
impl Freeze for Draft
impl RefUnwindSafe for Draft
impl Send for Draft
impl Sync for Draft
impl Unpin for Draft
impl UnsafeUnpin for Draft
impl UnwindSafe for Draft
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