pub enum ControlResponse {
ServerStats(ServerStatsReport),
Clients {
rows: Vec<ClientRow>,
},
NtsData {
master_key_ids: Vec<u32>,
},
Tracking(TrackingReport),
Pong {
version: String,
},
Error {
message: String,
},
}Expand description
The answer to a ControlRequest.
Variants§
ServerStats(ServerStatsReport)
Clients
A struct variant, not Clients(Vec<..>), deliberately: serde’s
internally-tagged representation cannot encode a newtype variant that
wraps a sequence, and the failure appears only at serialization —
the op works in-process and returns an empty reply over the socket.
NtsData
Fields
Tracking(TrackingReport)
A newtype over a STRUCT, which the internally-tagged representation
flattens to {"result":"tracking", <fields>} — the same shape
ServerStats already produces. (Contrast Clients above, which cannot
be a newtype because it wraps a sequence.)
Pong
Error
Trait Implementations§
Source§impl Clone for ControlResponse
impl Clone for ControlResponse
Source§impl Debug for ControlResponse
impl Debug for ControlResponse
Source§impl<'de> Deserialize<'de> for ControlResponse
impl<'de> Deserialize<'de> for ControlResponse
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
Source§impl PartialEq for ControlResponse
impl PartialEq for ControlResponse
Source§impl Serialize for ControlResponse
impl Serialize for ControlResponse
impl StructuralPartialEq for ControlResponse
Auto Trait Implementations§
impl Freeze for ControlResponse
impl RefUnwindSafe for ControlResponse
impl Send for ControlResponse
impl Sync for ControlResponse
impl Unpin for ControlResponse
impl UnsafeUnpin for ControlResponse
impl UnwindSafe for ControlResponse
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