pub enum ControlPayload {
Show 17 variants
KeyRotate {
new_eph_pub: [u8; 32],
},
MaskUpdate {
mask_data: Vec<u8>,
signature: [u8; 64],
},
Keepalive,
TelemetryRequest {
metric_flags: u8,
},
TelemetryResponse {
packet_loss: u16,
rtt_ms: u16,
jitter_ms: u16,
buffer_pct: u8,
},
TimeSync {
server_ts_ms: u64,
},
Shutdown {
reason: u8,
},
ControlAck {
ack_seq: u16,
ack_for_subtype: u8,
},
ServerHello {
server_eph_pub: [u8; 32],
signature: [u8; 64],
network_config: Option<ClientNetworkConfig>,
},
RecordingStart {
service: String,
},
RecordingAck {
session_id: [u8; 16],
status: String,
},
RecordingStop {
session_id: [u8; 16],
},
RecordingComplete {
service: String,
mask_id: String,
confidence: f32,
},
RecordingFailed {
reason: String,
},
RecordingStatusRequest,
RecordingStatus {
can_record: bool,
active_service: Option<String>,
},
BootstrapDescriptorUpdate {
descriptor_data: Vec<u8>,
},
}Expand description
Control message payload
Variants§
KeyRotate
MaskUpdate
Keepalive
TelemetryRequest
TelemetryResponse
TimeSync
Shutdown
ControlAck
ServerHello
RecordingStart
Admin requests recording start for a service
RecordingAck
Server acknowledges recording start
RecordingStop
Admin requests recording stop
RecordingComplete
Server reports mask generation complete
RecordingFailed
Server reports recording/generation failure
RecordingStatusRequest
Client asks whether the current authenticated session may record masks.
RecordingStatus
Server reports recording capability and current active recording state.
BootstrapDescriptorUpdate
Implementations§
Trait Implementations§
Source§impl Clone for ControlPayload
impl Clone for ControlPayload
Source§fn clone(&self) -> ControlPayload
fn clone(&self) -> ControlPayload
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 ControlPayload
impl Debug for ControlPayload
Source§impl<'de> Deserialize<'de> for ControlPayload
impl<'de> Deserialize<'de> for ControlPayload
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 ControlPayload
impl RefUnwindSafe for ControlPayload
impl Send for ControlPayload
impl Sync for ControlPayload
impl Unpin for ControlPayload
impl UnsafeUnpin for ControlPayload
impl UnwindSafe for ControlPayload
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