pub struct Spawner {
pub session_id: String,
pub context_id: String,
pub report_to: Option<CompletionAddress>,
}Expand description
The parent a delegated child belongs to, supplied by the parent at launch.
Carries no delegation id: the id is minted by the launcher, one per launch, so a caller
holding one Spawner cannot make two delegations report under one id.
Fields§
§session_id: StringThe parent’s session id. A completion addressed to any other session is refused at the
door rather than delivered to whoever answers the address now, and it is the value the
child writes to its own session_start.spawned_by.
context_id: StringThe conversation the delegation was made from, which the completion names as its own.
report_to: Option<CompletionAddress>Where this delegation’s completion goes, or None for a parent that wants none.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Spawner
impl Freeze for Spawner
impl Move for Spawner
impl RefUnwindSafe for Spawner
impl Send for Spawner
impl Sync for Spawner
impl Unpin for Spawner
impl UnsafeUnpin for Spawner
impl UnwindSafe for Spawner
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<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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more