pub struct HttpReloadPolicy { /* private fields */ }Expand description
Bounded health and drain policy for one routing reload.
Implementations§
Source§impl HttpReloadPolicy
impl HttpReloadPolicy
Sourcepub fn new(
health_timeout: Duration,
drain_timeout: Duration,
) -> Result<Self, RuntimeHttpReloadError>
pub fn new( health_timeout: Duration, drain_timeout: Duration, ) -> Result<Self, RuntimeHttpReloadError>
Creates a policy with non-zero health and drain deadlines.
Sourcepub fn health_timeout(self) -> Duration
pub fn health_timeout(self) -> Duration
Returns the candidate health deadline.
Sourcepub fn drain_timeout(self) -> Duration
pub fn drain_timeout(self) -> Duration
Returns the old-generation drain deadline.
Trait Implementations§
Source§impl Clone for HttpReloadPolicy
impl Clone for HttpReloadPolicy
Source§fn clone(&self) -> HttpReloadPolicy
fn clone(&self) -> HttpReloadPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HttpReloadPolicy
Source§impl Debug for HttpReloadPolicy
impl Debug for HttpReloadPolicy
impl Eq for HttpReloadPolicy
Source§impl PartialEq for HttpReloadPolicy
impl PartialEq for HttpReloadPolicy
impl StructuralPartialEq for HttpReloadPolicy
Auto Trait Implementations§
impl Freeze for HttpReloadPolicy
impl RefUnwindSafe for HttpReloadPolicy
impl Send for HttpReloadPolicy
impl Sync for HttpReloadPolicy
impl Unpin for HttpReloadPolicy
impl UnsafeUnpin for HttpReloadPolicy
impl UnwindSafe for HttpReloadPolicy
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