pub struct DistConfig {
pub heartbeat_interval: Duration,
pub stage0_task_poll_timeout: Duration,
pub job_ttl: Duration,
pub job_ttl_check_interval: Duration,
}Fields§
§heartbeat_interval: Duration§stage0_task_poll_timeout: Duration§job_ttl: Duration§job_ttl_check_interval: DurationImplementations§
Source§impl DistConfig
impl DistConfig
pub fn with_heartbeat_interval( self, heartbeat_interval: impl Into<Duration>, ) -> Self
pub fn with_stage0_task_poll_timeout( self, stage0_task_poll_timeout: impl Into<Duration>, ) -> Self
pub fn with_job_ttl(self, job_ttl: impl Into<Duration>) -> Self
pub fn with_job_ttl_check_interval( self, job_ttl_check_interval: impl Into<Duration>, ) -> Self
Source§impl DistConfig
impl DistConfig
Trait Implementations§
Source§impl Debug for DistConfig
impl Debug for DistConfig
Auto Trait Implementations§
impl Freeze for DistConfig
impl RefUnwindSafe for DistConfig
impl Send for DistConfig
impl Sync for DistConfig
impl Unpin for DistConfig
impl UnwindSafe for DistConfig
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> 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 more