pub struct ServerGatewayOptions {
pub target_url: Url,
pub namespace: String,
pub task_queue: String,
pub identity: String,
pub worker_binary_id: String,
pub long_poll_timeout: Duration,
}
Expand description
Options for the connection to the temporal server
Fields§
§target_url: Url
The URL of the Temporal server to connect to
namespace: String
What namespace will we operate under
task_queue: String
The task queue this worker is operating on
identity: String
A human-readable string that can identify your worker
TODO: Probably belongs in future worker abstraction
worker_binary_id: String
A string that should be unique to the exact worker code/binary being executed
long_poll_timeout: Duration
Timeout for long polls (polling of task queues)
Implementations§
Source§impl ServerGatewayOptions
impl ServerGatewayOptions
Sourcepub async fn connect(&self) -> Result<ServerGateway, CoreInitError>
pub async fn connect(&self) -> Result<ServerGateway, CoreInitError>
Attempt to establish a connection to the Temporal server
Trait Implementations§
Source§impl Clone for ServerGatewayOptions
impl Clone for ServerGatewayOptions
Source§fn clone(&self) -> ServerGatewayOptions
fn clone(&self) -> ServerGatewayOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ServerGatewayOptions
impl RefUnwindSafe for ServerGatewayOptions
impl Send for ServerGatewayOptions
impl Sync for ServerGatewayOptions
impl Unpin for ServerGatewayOptions
impl UnwindSafe for ServerGatewayOptions
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§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