pub struct HandlerKey(/* private fields */);Expand description
String identifier for a registered handler, serializable without a live handle.
Implementations§
Source§impl HandlerKey
impl HandlerKey
Trait Implementations§
Source§impl<F> AsRef<HandlerKey> for Key<F>where
F: Family,
impl<F> AsRef<HandlerKey> for Key<F>where
F: Family,
Source§fn as_ref(&self) -> &HandlerKey
fn as_ref(&self) -> &HandlerKey
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for HandlerKey
impl AsRef<str> for HandlerKey
Source§impl Clone for HandlerKey
impl Clone for HandlerKey
Source§fn clone(&self) -> HandlerKey
fn clone(&self) -> HandlerKey
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 HandlerKey
impl Debug for HandlerKey
Source§impl<'de> Deserialize<'de> for HandlerKey
impl<'de> Deserialize<'de> for HandlerKey
Source§fn deserialize<D>(
deserializer: D,
) -> Result<HandlerKey, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<HandlerKey, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for HandlerKey
impl Display for HandlerKey
impl Eq for HandlerKey
Source§impl From<&str> for HandlerKey
impl From<&str> for HandlerKey
Source§fn from(key: &str) -> HandlerKey
fn from(key: &str) -> HandlerKey
Converts to this type from the input type.
Source§impl<F> From<Key<F>> for HandlerKeywhere
F: Family,
impl<F> From<Key<F>> for HandlerKeywhere
F: Family,
Source§fn from(key: Key<F>) -> HandlerKey
fn from(key: Key<F>) -> HandlerKey
Converts to this type from the input type.
Source§impl From<String> for HandlerKey
impl From<String> for HandlerKey
Source§fn from(key: String) -> HandlerKey
fn from(key: String) -> HandlerKey
Converts to this type from the input type.
Source§impl Hash for HandlerKey
impl Hash for HandlerKey
Source§impl Ord for HandlerKey
impl Ord for HandlerKey
Source§fn cmp(&self, other: &HandlerKey) -> Ordering
fn cmp(&self, other: &HandlerKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for HandlerKey
impl PartialEq for HandlerKey
Source§impl PartialOrd for HandlerKey
impl PartialOrd for HandlerKey
Source§impl Serialize for HandlerKey
impl Serialize for HandlerKey
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 HandlerKey
Auto Trait Implementations§
impl Freeze for HandlerKey
impl RefUnwindSafe for HandlerKey
impl Send for HandlerKey
impl Sync for HandlerKey
impl Unpin for HandlerKey
impl UnsafeUnpin for HandlerKey
impl UnwindSafe for HandlerKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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§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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.