pub struct DrainStrategyBuilder { /* private fields */ }
Expand description
Builder for DrainStrategy
.
Implementations§
Source§impl DrainStrategyBuilder
impl DrainStrategyBuilder
Sourcepub fn force_deadline(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn force_deadline(&mut self, value: DateTime<Utc>) -> &mut Self
ForceDeadline is the deadline time for the drain after which drains will be forced
Sourcepub fn started_at(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn started_at(&mut self, value: DateTime<Utc>) -> &mut Self
StartedAt is the time the drain process started
Sourcepub fn build(&self) -> Result<DrainStrategy, DrainStrategyBuilderError>
pub fn build(&self) -> Result<DrainStrategy, DrainStrategyBuilderError>
Trait Implementations§
Source§impl Clone for DrainStrategyBuilder
impl Clone for DrainStrategyBuilder
Source§fn clone(&self) -> DrainStrategyBuilder
fn clone(&self) -> DrainStrategyBuilder
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 moreAuto Trait Implementations§
impl Freeze for DrainStrategyBuilder
impl RefUnwindSafe for DrainStrategyBuilder
impl Send for DrainStrategyBuilder
impl Sync for DrainStrategyBuilder
impl Unpin for DrainStrategyBuilder
impl UnwindSafe for DrainStrategyBuilder
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