pub struct Dispatch { /* private fields */ }Expand description
An effect’s identity, requested delivery mode, and driver-provided scopes. Reply transport and cancellation remain owned by the driver.
Implementations§
Source§impl Dispatch
impl Dispatch
Sourcepub fn scopes(&self) -> Vec<Arc<dyn Any + Send + Sync>>
pub fn scopes(&self) -> Vec<Arc<dyn Any + Send + Sync>>
Copy the scope handles for an inline or tool dispatch.
Sourcepub fn recorded_by(self, recorder: Arc<dyn Recorder + Send + Sync>) -> Self
pub fn recorded_by(self, recorder: Arc<dyn Recorder + Send + Sync>) -> Self
This dispatch observed by recorder under its id, as a recording
driver installs it after begin: its
outcome, stream, origin and layer decisions, and the tool output its
handler publishes into a PublishedContext
scope, whatever a layer’s verdict. Add the scopes first. A handler
that serves the dispatch through an inner one, passing it on, is
recorded once it answered, with what it published by then; a
Layer hands the recorder to the handler it wraps.
Auto Trait Implementations§
impl !RefUnwindSafe for Dispatch
impl !UnwindSafe for Dispatch
impl Forget for Dispatch
impl Freeze for Dispatch
impl Move for Dispatch
impl Send for Dispatch
impl Sync for Dispatch
impl Unpin for Dispatch
impl UnsafeUnpin for Dispatch
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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