#[non_exhaustive]pub enum TaskSupportMode {
Required,
Optional,
Forbidden,
}Expand description
Task support mode for tool execution
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Required
Task execution is required.
Legacy clients must include task parameters. On the final protocol the server creates a task whenever the extension is negotiated, and rejects clients that did not declare it.
Optional
Task execution is optional.
Legacy clients choose by including task parameters. On the final protocol this is server policy: the router creates a task when both peers negotiated the extension and otherwise completes synchronously.
Forbidden
Task execution is forbidden; the tool always completes synchronously.
Trait Implementations§
Source§impl Clone for TaskSupportMode
impl Clone for TaskSupportMode
Source§fn clone(&self) -> TaskSupportMode
fn clone(&self) -> TaskSupportMode
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 moreimpl Copy for TaskSupportMode
Source§impl Debug for TaskSupportMode
impl Debug for TaskSupportMode
Source§impl Default for TaskSupportMode
impl Default for TaskSupportMode
Source§fn default() -> TaskSupportMode
fn default() -> TaskSupportMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TaskSupportMode
impl<'de> Deserialize<'de> for TaskSupportMode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskSupportMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskSupportMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TaskSupportMode
Source§impl PartialEq for TaskSupportMode
impl PartialEq for TaskSupportMode
Source§impl Serialize for TaskSupportMode
impl Serialize for TaskSupportMode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TaskSupportMode
Auto Trait Implementations§
impl Freeze for TaskSupportMode
impl RefUnwindSafe for TaskSupportMode
impl Send for TaskSupportMode
impl Sync for TaskSupportMode
impl Unpin for TaskSupportMode
impl UnsafeUnpin for TaskSupportMode
impl UnwindSafe for TaskSupportMode
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.