pub struct WorkerOptions { /* private fields */ }Expand description
Configures a crate::Worker listener and its Dex connection.
Defaults bind WorkerService on 0.0.0.0:8803, connect to Dex at 127.0.0.1:8801, derive an
advertised target from the listener, and allow two minutes for Attribute-index synchronization.
Implementations§
Source§impl WorkerOptions
impl WorkerOptions
Sourcepub fn bind_address(self, value: impl Into<String>) -> Self
pub fn bind_address(self, value: impl Into<String>) -> Self
Sets the local plaintext WorkerService listener address.
Sourcepub fn server_address(self, value: impl Into<String>) -> Self
pub fn server_address(self, value: impl Into<String>) -> Self
Sets the plaintext Dex FlowService host:port used by the Worker.
Sourcepub fn worker_target(self, value: WorkerTarget) -> Self
pub fn worker_target(self, value: WorkerTarget) -> Self
Overrides the WorkerService target advertised to Dex.
Sourcepub fn attribute_index_sync_timeout(self, value: Duration) -> Self
pub fn attribute_index_sync_timeout(self, value: Duration) -> Self
Sets the startup Indexed Attribute synchronization deadline.
The default is two minutes. Worker::try_new
rejects Duration::ZERO.
Trait Implementations§
Source§impl Clone for WorkerOptions
impl Clone for WorkerOptions
Source§fn clone(&self) -> WorkerOptions
fn clone(&self) -> WorkerOptions
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 WorkerOptions
impl Debug for WorkerOptions
Auto Trait Implementations§
impl Freeze for WorkerOptions
impl RefUnwindSafe for WorkerOptions
impl Send for WorkerOptions
impl Sync for WorkerOptions
impl Unpin for WorkerOptions
impl UnsafeUnpin for WorkerOptions
impl UnwindSafe for WorkerOptions
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