pub struct DispatchTaskRequest {Show 13 fields
pub queue: String,
pub fallback_queue: String,
pub flow_id: String,
pub sticky_wait: Option<Duration>,
pub dispatch_wait: Option<Duration>,
pub deadline: Option<Timestamp>,
pub task_id: String,
pub supports_assignment_state: bool,
pub excluded_app_worker_ids: Vec<String>,
pub stop_after_unknown_name: bool,
pub stop_when_queue_has_no_streams: bool,
pub supports_unknown_name_error: bool,
pub request: Option<Request>,
}Expand description
Describes one task dispatched to a Dex task queue.
Fields§
§queue: StringSelects the initial queue: a sticky Worker ID or a Flow type.
fallback_queue: StringNames the Flow type queue after a sticky wait expires.
flow_id: StringIdentifies the Flow for Worker affinity within a Flow type queue.
sticky_wait: Option<Duration>Limits waiting on a sticky queue before trying fallback_queue.
dispatch_wait: Option<Duration>Limits total waiting for a Worker to accept the task.
deadline: Option<Timestamp>Bounds task execution, including Worker processing time.
task_id: StringIdentifies this dispatch across Worker and server streams.
supports_assignment_state: boolAllows matching to send assignment state frames to capable callers.
excluded_app_worker_ids: Vec<String>Worker processes already found unable to serve this task.
stop_after_unknown_name: boolEnds an internal sticky queue search immediately after an unknown-name rejection.
stop_when_queue_has_no_streams: boolEnds an internal sticky queue search when no Worker streams remain connected.
supports_unknown_name_error: boolAllows matching to return UNKNOWN_NAME after a Worker rejects an unknown Step type or RPC name.
request: Option<Request>Trait Implementations§
Source§impl Clone for DispatchTaskRequest
impl Clone for DispatchTaskRequest
Source§impl Debug for DispatchTaskRequest
impl Debug for DispatchTaskRequest
Source§impl Default for DispatchTaskRequest
impl Default for DispatchTaskRequest
Source§impl Message for DispatchTaskRequest
impl Message for DispatchTaskRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for DispatchTaskRequest
impl PartialEq for DispatchTaskRequest
impl StructuralPartialEq for DispatchTaskRequest
Auto Trait Implementations§
impl Freeze for DispatchTaskRequest
impl RefUnwindSafe for DispatchTaskRequest
impl Send for DispatchTaskRequest
impl Sync for DispatchTaskRequest
impl Unpin for DispatchTaskRequest
impl UnsafeUnpin for DispatchTaskRequest
impl UnwindSafe for DispatchTaskRequest
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
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>
T in a tonic::Request