pub struct InvocationId(/* private fields */);Expand description
Uniquely identifies a single invocation instance (UUID).
Each time a call is routed for execution, a new invocation is created. Multiple invocations can exist for the same call (retries, concurrent runs).
Implementations§
Source§impl InvocationId
impl InvocationId
pub fn new() -> InvocationId
pub fn from_string(id: impl Into<Arc<str>>) -> InvocationId
Sourcepub fn try_from_string(id: impl Into<Arc<str>>) -> Result<InvocationId, String>
pub fn try_from_string(id: impl Into<Arc<str>>) -> Result<InvocationId, String>
Create an InvocationId from a string, validating UUID format.
Trait Implementations§
Source§impl AsRef<str> for InvocationId
impl AsRef<str> for InvocationId
Source§impl Clone for InvocationId
impl Clone for InvocationId
Source§fn clone(&self) -> InvocationId
fn clone(&self) -> InvocationId
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 moreSource§impl Debug for InvocationId
impl Debug for InvocationId
Source§impl Default for InvocationId
impl Default for InvocationId
Source§fn default() -> InvocationId
fn default() -> InvocationId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InvocationId
impl<'de> Deserialize<'de> for InvocationId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InvocationId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InvocationId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for InvocationId
impl Display for InvocationId
Source§impl From<&str> for InvocationId
impl From<&str> for InvocationId
Source§fn from(s: &str) -> InvocationId
fn from(s: &str) -> InvocationId
Converts to this type from the input type.
Source§impl From<String> for InvocationId
impl From<String> for InvocationId
Source§fn from(s: String) -> InvocationId
fn from(s: String) -> InvocationId
Converts to this type from the input type.
Source§impl Hash for InvocationId
impl Hash for InvocationId
Source§impl PartialEq for InvocationId
impl PartialEq for InvocationId
Source§impl Serialize for InvocationId
impl Serialize for InvocationId
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 Eq for InvocationId
impl StructuralPartialEq for InvocationId
Auto Trait Implementations§
impl Freeze for InvocationId
impl RefUnwindSafe for InvocationId
impl Send for InvocationId
impl Sync for InvocationId
impl Unpin for InvocationId
impl UnsafeUnpin for InvocationId
impl UnwindSafe for InvocationId
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> 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.