pub struct ServerOptions {
pub timer: TimerOptions,
pub executor_heartbeat_timeout: Duration,
pub timer_buffer_size: NonZeroUsize,
pub event_buffer_size: NonZeroUsize,
pub bookkeeping_interval: Duration,
pub cleanup_interval: Option<Duration>,
pub executor_shutdown_timeout: Duration,
pub max_job_age: Option<Duration>,
pub max_schedule_age: Option<Duration>,
}
Expand description
Options for the server.
Fields§
§timer: TimerOptions
Options for the timer.
executor_heartbeat_timeout: Duration
The timeout for an executor to be considered dead.
timer_buffer_size: NonZeroUsize
Buffer size for internal channels.
event_buffer_size: NonZeroUsize
Buffer size for internal events.
bookkeeping_interval: Duration
Bookkeeping interval for various tasks, the server is mostly event-driven but some tasks are run periodically.
Even event-driven tasks are run periodically to ensure that they are not stuck.
cleanup_interval: Option<Duration>
Interval for cleaning up old jobs and schedules.
If not provided, the bookkeeping interval is used.
executor_shutdown_timeout: Duration
Executor shutdown timeout.
max_job_age: Option<Duration>
Delete inactive jobs after this duration.
By default, jobs are never deleted.
max_schedule_age: Option<Duration>
Delete inactive schedules after this duration.
By default, schedules are never deleted.
Trait Implementations§
Source§impl Clone for ServerOptions
impl Clone for ServerOptions
Source§fn clone(&self) -> ServerOptions
fn clone(&self) -> ServerOptions
Returns a copy 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 moreSource§impl Debug for ServerOptions
impl Debug for ServerOptions
Auto Trait Implementations§
impl Freeze for ServerOptions
impl RefUnwindSafe for ServerOptions
impl Send for ServerOptions
impl Sync for ServerOptions
impl Unpin for ServerOptions
impl UnwindSafe for ServerOptions
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