pub struct PollWorkerTaskRegister {
pub queue: String,
pub app_worker_id: String,
pub flow_types: Vec<String>,
pub sdk_name: String,
pub sdk_version: String,
pub supports_reserved_slot_dispatch: bool,
pub slot_kind: i32,
}Expand description
Registers one queue stream or reserved execution slot for a Worker process.
Fields§
§queue: StringNames this stream’s queue: app_worker_id or one declared flow_type. Workers declaring supports_reserved_slot_dispatch leave it empty; the stream serves its own sticky queue (app_worker_id) and every Flow type in flow_types. Dex rejects a reserved-slot registration with a non-empty queue with INVALID_ARGUMENT.
app_worker_id: StringIdentifies this Worker process across reconnects; a restart uses a new ID.
flow_types: Vec<String>Lists the Flow types this Worker can execute.
sdk_name: StringIdentifies the SDK implementation for diagnostics.
sdk_version: StringIdentifies the SDK release for diagnostics.
supports_reserved_slot_dispatch: boolWhen true, this stream is one reserved Worker execution slot, ready whenever idle. The Worker never rejects a task for capacity. It rejects only unknown Step types or RPC names. While stopping, it drops task frames without sending any frame for them. See the PollWorkerTask rpc. When false, the stream serves only the queue named in queue and may reject with NO_CAPACITY. Requires Server protocol version 4 or later.
slot_kind: i32Selects which tasks this slot accepts; unspecified means STEP_AND_RPC. Applies only to reserved-slot streams. Dex rejects a registration with INVALID_ARGUMENT when supports_reserved_slot_dispatch is false and slot_kind is not UNSPECIFIED. Requires Server protocol version 4 or later.
Implementations§
Source§impl PollWorkerTaskRegister
impl PollWorkerTaskRegister
Sourcepub fn slot_kind(&self) -> PollWorkerSlotKind
pub fn slot_kind(&self) -> PollWorkerSlotKind
Returns the enum value of slot_kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_slot_kind(&mut self, value: PollWorkerSlotKind)
pub fn set_slot_kind(&mut self, value: PollWorkerSlotKind)
Sets slot_kind to the provided enum value.
Trait Implementations§
Source§impl Clone for PollWorkerTaskRegister
impl Clone for PollWorkerTaskRegister
Source§impl Debug for PollWorkerTaskRegister
impl Debug for PollWorkerTaskRegister
Source§impl Default for PollWorkerTaskRegister
impl Default for PollWorkerTaskRegister
impl Eq for PollWorkerTaskRegister
Source§impl Hash for PollWorkerTaskRegister
impl Hash for PollWorkerTaskRegister
Source§impl Message for PollWorkerTaskRegister
impl Message for PollWorkerTaskRegister
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 PollWorkerTaskRegister
impl PartialEq for PollWorkerTaskRegister
impl StructuralPartialEq for PollWorkerTaskRegister
Auto Trait Implementations§
impl Forget for PollWorkerTaskRegister
impl Freeze for PollWorkerTaskRegister
impl RefUnwindSafe for PollWorkerTaskRegister
impl Send for PollWorkerTaskRegister
impl Sync for PollWorkerTaskRegister
impl Unpin for PollWorkerTaskRegister
impl UnsafeUnpin for PollWorkerTaskRegister
impl UnwindSafe for PollWorkerTaskRegister
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<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
key and return true if they are equal.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