pub struct DispatchResponse {
pub worker_id: String,
pub result: ActivityResult,
}Expand description
Typed response returned by a worker through an activity dispatch conversation.
Fields§
§worker_id: StringWorker that produced the response.
result: ActivityResultActivity result returned by the worker.
Implementations§
Source§impl DispatchResponse
impl DispatchResponse
Sourcepub const CONTENT_TYPE: &'static str = DISPATCH_RESPONSE_CONTENT_TYPE
pub const CONTENT_TYPE: &'static str = DISPATCH_RESPONSE_CONTENT_TYPE
Content type expected by typed dispatch response channels.
Sourcepub const fn new(worker_id: String, result: ActivityResult) -> Self
pub const fn new(worker_id: String, result: ActivityResult) -> Self
Creates a typed dispatch response.
Trait Implementations§
Source§impl Clone for DispatchResponse
impl Clone for DispatchResponse
Source§fn clone(&self) -> DispatchResponse
fn clone(&self) -> DispatchResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DispatchResponse
impl Debug for DispatchResponse
impl Eq for DispatchResponse
Source§impl PartialEq for DispatchResponse
impl PartialEq for DispatchResponse
Source§fn eq(&self, other: &DispatchResponse) -> bool
fn eq(&self, other: &DispatchResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DispatchResponse
Auto Trait Implementations§
impl Freeze for DispatchResponse
impl RefUnwindSafe for DispatchResponse
impl Send for DispatchResponse
impl Sync for DispatchResponse
impl Unpin for DispatchResponse
impl UnsafeUnpin for DispatchResponse
impl UnwindSafe for DispatchResponse
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.