pub struct CoreInitOptions {
pub gateway_opts: ServerGatewayOptions,
pub evict_after_pending_cleared: bool,
pub max_outstanding_workflow_tasks: usize,
pub max_outstanding_activities: usize,
}Expand description
Holds various configuration information required to call init
Fields§
§gateway_opts: ServerGatewayOptionsOptions for the connection to the temporal server
evict_after_pending_cleared: boolIf set to true (which should be the default choice until sticky task queues are implemented) workflows are evicted after they no longer have any pending activations. IE: After they have sent new commands to the server.
max_outstanding_workflow_tasks: usizeThe maximum allowed number of workflow tasks that will ever be given to lang at one time. Note that one workflow task may require multiple activations - so the WFT counts as “outstanding” until all activations it requires have been completed.
max_outstanding_activities: usizeThe maximum allowed number of activity tasks that will ever be given to lang at one time.
Auto Trait Implementations§
impl Freeze for CoreInitOptions
impl RefUnwindSafe for CoreInitOptions
impl Send for CoreInitOptions
impl Sync for CoreInitOptions
impl Unpin for CoreInitOptions
impl UnwindSafe for CoreInitOptions
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> 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