pub struct WorkerConfig {
pub namespace: String,
pub subject: String,
pub endpoint: String,
pub task_queue: String,
pub identity: String,
pub max_concurrency: usize,
pub reconnect: ReconnectConfig,
pub transport_credentials: Option<TransportCredentials>,
}Expand description
Operator-supplied worker connection and serving configuration.
Tunable fields remain caller-supplied. Namespace authorization metadata
defaults to default/worker so development workers can register against
the default task queue without an explicit auth setup.
Fields§
§namespace: StringNamespace advertised in x-aion-namespaces worker stream metadata.
subject: StringSubject advertised in x-aion-subject worker stream metadata.
endpoint: StringEngine worker endpoint URI.
task_queue: StringTask queue advertised to the engine. The current AW wire names this field
namespace; this SDK maps the task queue value to that owned wire shape.
identity: StringWorker identity used by operators and future wire metadata.
max_concurrency: usizeMaximum concurrent activities this worker may serve.
reconnect: ReconnectConfigOperator-supplied reconnect settings.
transport_credentials: Option<TransportCredentials>Opaque credentials for the transport implementation.
Implementations§
Source§impl WorkerConfig
impl WorkerConfig
Sourcepub const fn builder() -> WorkerConfigBuilder
pub const fn builder() -> WorkerConfigBuilder
Starts an explicit builder. The caller must provide every required field
before calling WorkerConfigBuilder::build.
Trait Implementations§
Source§impl Clone for WorkerConfig
impl Clone for WorkerConfig
Source§fn clone(&self) -> WorkerConfig
fn clone(&self) -> WorkerConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WorkerConfig
impl Debug for WorkerConfig
impl Eq for WorkerConfig
Source§impl PartialEq for WorkerConfig
impl PartialEq for WorkerConfig
Source§fn eq(&self, other: &WorkerConfig) -> bool
fn eq(&self, other: &WorkerConfig) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WorkerConfig
Auto Trait Implementations§
impl Freeze for WorkerConfig
impl RefUnwindSafe for WorkerConfig
impl Send for WorkerConfig
impl Sync for WorkerConfig
impl Unpin for WorkerConfig
impl UnsafeUnpin for WorkerConfig
impl UnwindSafe for WorkerConfig
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