pub struct ClientCapabilitiesBuilderState<const EXPERIMENTAL: bool = false, const ROOTS: bool = false, const SAMPLING: bool = false, const ELICITATION: bool = false>;
Expand description
Type-state for ClientCapabilitiesBuilder
Each const generic represents whether a capability is enabled:
- EXPERIMENTAL: Experimental capabilities
- ROOTS: Roots capabilities
- SAMPLING: Sampling capabilities
- ELICITATION: Elicitation capabilities
Trait Implementations§
Source§impl<const EXPERIMENTAL: bool, const ROOTS: bool, const SAMPLING: bool, const ELICITATION: bool> Clone for ClientCapabilitiesBuilderState<EXPERIMENTAL, ROOTS, SAMPLING, ELICITATION>
impl<const EXPERIMENTAL: bool, const ROOTS: bool, const SAMPLING: bool, const ELICITATION: bool> Clone for ClientCapabilitiesBuilderState<EXPERIMENTAL, ROOTS, SAMPLING, ELICITATION>
Source§fn clone(
&self,
) -> ClientCapabilitiesBuilderState<EXPERIMENTAL, ROOTS, SAMPLING, ELICITATION>
fn clone( &self, ) -> ClientCapabilitiesBuilderState<EXPERIMENTAL, ROOTS, SAMPLING, ELICITATION>
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 moreAuto Trait Implementations§
impl<const EXPERIMENTAL: bool, const ROOTS: bool, const SAMPLING: bool, const ELICITATION: bool> Freeze for ClientCapabilitiesBuilderState<EXPERIMENTAL, ROOTS, SAMPLING, ELICITATION>
impl<const EXPERIMENTAL: bool, const ROOTS: bool, const SAMPLING: bool, const ELICITATION: bool> RefUnwindSafe for ClientCapabilitiesBuilderState<EXPERIMENTAL, ROOTS, SAMPLING, ELICITATION>
impl<const EXPERIMENTAL: bool, const ROOTS: bool, const SAMPLING: bool, const ELICITATION: bool> Send for ClientCapabilitiesBuilderState<EXPERIMENTAL, ROOTS, SAMPLING, ELICITATION>
impl<const EXPERIMENTAL: bool, const ROOTS: bool, const SAMPLING: bool, const ELICITATION: bool> Sync for ClientCapabilitiesBuilderState<EXPERIMENTAL, ROOTS, SAMPLING, ELICITATION>
impl<const EXPERIMENTAL: bool, const ROOTS: bool, const SAMPLING: bool, const ELICITATION: bool> Unpin for ClientCapabilitiesBuilderState<EXPERIMENTAL, ROOTS, SAMPLING, ELICITATION>
impl<const EXPERIMENTAL: bool, const ROOTS: bool, const SAMPLING: bool, const ELICITATION: bool> UnwindSafe for ClientCapabilitiesBuilderState<EXPERIMENTAL, ROOTS, SAMPLING, ELICITATION>
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