pub enum Status {
Up,
Down,
Starting,
OutOfService,
}Expand description
What an instance says about itself.
Separate from whether the registry can still hear it — that is last_seen,
and the two are different facts. An instance can be Up and unheard from
for a minute, which is a network problem; it can be heard from every second
and OutOfService, which is a deliberate drain before a deploy.
Variants§
Up
Down
Starting
OutOfService
Taken out of rotation on purpose. Still registered, still heartbeating, and deliberately not sent traffic — this is how a deploy drains an instance without the registry deciding it died.
Implementations§
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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