pub struct Wait { /* private fields */ }Expand description
A wait step: where this case’s key is in the awaited event, what the event adds to the case,
how long to wait. Wait::key("data.order_id").timeout("3d", "cancel").
Implementations§
Source§impl Wait
impl Wait
Sourcepub fn key(reference: &str) -> Wait
pub fn key(reference: &str) -> Wait
Where the event names the case’s key: aggregate_id, or data.<field>.
Sourcepub fn data<K: AsRef<str>, V: Into<Source>>(
self,
fields: impl IntoIterator<Item = (K, V)>,
) -> Wait
pub fn data<K: AsRef<str>, V: Into<Source>>( self, fields: impl IntoIterator<Item = (K, V)>, ) -> Wait
Merged into the case’s data from the event: field → reference (aggregate_id,
data.<field>, case.<field>) or value.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Wait
impl Freeze for Wait
impl Move for Wait
impl RefUnwindSafe for Wait
impl Send for Wait
impl Sync for Wait
impl Unpin for Wait
impl UnsafeUnpin for Wait
impl UnwindSafe for Wait
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request