pub enum AdminResponse {
Ok {
message: String,
},
SessionExpired {
session_id: String,
},
Draining {
active_sessions: usize,
},
SessionList {
sessions: Vec<SessionSummary>,
},
QuorumPurged {
quorum_id: String,
count: usize,
},
Diagnostics {
report_json: String,
},
Error {
message: String,
},
}Expand description
Admin response types.
Variants§
Ok
Operation succeeded.
SessionExpired
Session was expired.
Draining
Drain initiated.
SessionList
Session list.
Fields
§
sessions: Vec<SessionSummary>QuorumPurged
Quorum purged.
Diagnostics
Diagnostics report.
Error
Error.
Trait Implementations§
Source§impl Clone for AdminResponse
impl Clone for AdminResponse
Source§fn clone(&self) -> AdminResponse
fn clone(&self) -> AdminResponse
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 moreSource§impl Debug for AdminResponse
impl Debug for AdminResponse
Source§impl<'de> Deserialize<'de> for AdminResponse
impl<'de> Deserialize<'de> for AdminResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AdminResponse
impl RefUnwindSafe for AdminResponse
impl Send for AdminResponse
impl Sync for AdminResponse
impl Unpin for AdminResponse
impl UnsafeUnpin for AdminResponse
impl UnwindSafe for AdminResponse
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