pub struct ThreadId<T = String>(/* private fields */)
where
T: AsRef<str> + ?Sized;Expand description
The thread identifier used to key sandboxes and repo state (RAP’s
group_id). Re-exported so backend crates can name it without a direct
rap-protocol dependency.
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> Deserialize<'de> for ThreadId<T>
impl<'de, T> Deserialize<'de> for ThreadId<T>
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ThreadId<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ThreadId<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T> Eq for ThreadId<T>
Source§impl<T> Ord for ThreadId<T>
impl<T> 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, B> PartialOrd<ThreadId<B>> for ThreadId<A>
impl<A, B> PartialOrd<ThreadId<B>> for ThreadId<A>
Source§impl<T> Serialize for ThreadId<T>
impl<T> Serialize for ThreadId<T>
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
Source§impl ToOwned for ThreadId<str>
impl ToOwned for ThreadId<str>
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>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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.