pub struct Builder<T>(/* private fields */);
Expand description
A builder for StalenessConfiguration
Implementations§
Source§impl Builder<ThresholdStage>
impl Builder<ThresholdStage>
Sourcepub fn threshold(self, threshold: Duration) -> Builder<ConnectStalePointsStage>
pub fn threshold(self, threshold: Duration) -> Builder<ConnectStalePointsStage>
Sets the threshold
field.
Source§impl Builder<ConnectStalePointsStage>
impl Builder<ConnectStalePointsStage>
Sourcepub fn connect_stale_points(
self,
connect_stale_points: bool,
) -> Builder<Complete>
pub fn connect_stale_points( self, connect_stale_points: bool, ) -> Builder<Complete>
Sets the connect_stale_points
field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn connect_stale_points(self, connect_stale_points: bool) -> Self
pub fn connect_stale_points(self, connect_stale_points: bool) -> Self
Sets the connect_stale_points
field.
Sourcepub fn build(self) -> StalenessConfiguration
pub fn build(self) -> StalenessConfiguration
Consumes the builder, returning a StalenessConfiguration
.
Trait Implementations§
Source§impl Default for Builder<ThresholdStage>
impl Default for Builder<ThresholdStage>
Source§impl From<StalenessConfiguration> for Builder<Complete>
impl From<StalenessConfiguration> for Builder<Complete>
Source§fn from(v: StalenessConfiguration) -> Self
fn from(v: StalenessConfiguration) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: UnwindSafe,
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> 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