pub struct ThreadId<T: ?Sized + AsRef<str> = String>(/* private fields */);Expand description
Identifies a conversation thread.
This is the identifier RAP calls group_id on the wire: every
invocation and callback carries the thread it belongs to. In the
embedded daemon runtime thread IDs are UUIDs; in the Lambda runtime a
root thread ID is the caller-chosen conversation key (which doubles as
the SQS FIFO MessageGroupId). Treat the contents as opaque.
Implementations§
Trait Implementations§
Source§impl<'de, T: AsRef<str> + Deserialize<'de>> Deserialize<'de> for ThreadId<T>
impl<'de, T: AsRef<str> + Deserialize<'de>> Deserialize<'de> for ThreadId<T>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<T: ?Sized + AsRef<str>> Eq for ThreadId<T>
Source§impl<T: ?Sized + AsRef<str>> Ord for ThreadId<T>
impl<T: ?Sized + AsRef<str>> Ord for ThreadId<T>
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<A: ?Sized + AsRef<str>, B: ?Sized + AsRef<str>> PartialOrd<ThreadId<B>> for ThreadId<A>
impl<A: ?Sized + AsRef<str>, B: ?Sized + AsRef<str>> PartialOrd<ThreadId<B>> for ThreadId<A>
Auto Trait Implementations§
impl<T> Freeze for ThreadId<T>
impl<T> RefUnwindSafe for ThreadId<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for ThreadId<T>
impl<T> Sync for ThreadId<T>
impl<T> Unpin for ThreadId<T>
impl<T> UnsafeUnpin for ThreadId<T>where
T: UnsafeUnpin + ?Sized,
impl<T> UnwindSafe for ThreadId<T>where
T: UnwindSafe + ?Sized,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.