pub enum DependencyRequirement {
Ready,
Healthy,
DegradedAllowed,
Optional,
}Expand description
Minimum health accepted from a declared dependency.
Variants§
Ready
Accept a dependency that is ready or healthy.
Healthy
Require a steady healthy dependency.
DegradedAllowed
Permit ready, healthy, or explicitly degraded operation.
Optional
Never block the dependent when this dependency is absent or unhealthy.
Implementations§
Source§impl DependencyRequirement
impl DependencyRequirement
Sourcepub fn accepts(self, health: ServiceHealth) -> bool
pub fn accepts(self, health: ServiceHealth) -> bool
Reports whether health satisfies this requirement.
Trait Implementations§
Source§impl Clone for DependencyRequirement
impl Clone for DependencyRequirement
Source§fn clone(&self) -> DependencyRequirement
fn clone(&self) -> DependencyRequirement
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 DependencyRequirement
Source§impl Debug for DependencyRequirement
impl Debug for DependencyRequirement
impl Eq for DependencyRequirement
Source§impl PartialEq for DependencyRequirement
impl PartialEq for DependencyRequirement
impl StructuralPartialEq for DependencyRequirement
Auto Trait Implementations§
impl Freeze for DependencyRequirement
impl RefUnwindSafe for DependencyRequirement
impl Send for DependencyRequirement
impl Sync for DependencyRequirement
impl Unpin for DependencyRequirement
impl UnsafeUnpin for DependencyRequirement
impl UnwindSafe for DependencyRequirement
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