#[repr(i32)]pub enum AdminVerb {
Unspecified = 0,
Status = 1,
Dump = 2,
ListInstances = 3,
Healthz = 4,
Readyz = 5,
BackendHealth = 6,
Config = 7,
Diagnose = 8,
Metrics = 9,
Shutdown = 21,
}Variants§
Unspecified = 0
Status = 1
Dump = 2
ListInstances = 3
Healthz = 4
Readyz = 5
BackendHealth = 6
Config = 7
Diagnose = 8
Metrics = 9
Shutdown = 21
Cooperative graceful shutdown (soldr#2442 Option B). Additive value 21 (10-20 stay reserved). Brokers that predate this verb answer it with the “unsupported admin verb” refusal (exit_code 2), which the client uses to fall back to verified-PID termination — so this stays compatible with the frozen-v1 contract.
Implementations§
Source§impl AdminVerb
impl AdminVerb
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
impl Copy for AdminVerb
impl Eq for AdminVerb
Source§impl Ord for AdminVerb
impl Ord for AdminVerb
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for AdminVerb
impl PartialOrd for AdminVerb
impl StructuralPartialEq for AdminVerb
Auto Trait Implementations§
impl Freeze for AdminVerb
impl RefUnwindSafe for AdminVerb
impl Send for AdminVerb
impl Sync for AdminVerb
impl Unpin for AdminVerb
impl UnsafeUnpin for AdminVerb
impl UnwindSafe for AdminVerb
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