pub enum AgentEvent {
SessionStarted {
signal_id: String,
role: Role,
path_label: String,
},
SessionEnded {
signal_id: String,
reason: String,
},
Command {
channel: u8,
payload: Bytes,
},
RequestedConfig(Value),
RecoveryRequest {
channel: u8,
kind: &'static str,
reason: &'static str,
},
SignalConnected,
SignalDisconnected,
SignalDenied {
reason: String,
},
LayerChanged {
channel: u8,
layer: u8,
name: String,
reason: &'static str,
},
NatReport(Value),
}Expand description
What a running agent tells its host. The engine’s own events pass through unchanged; the rest describe the lifecycle the host no longer runs itself.
Variants§
SessionStarted
A pilot session was admitted. Signaling has already been told.
SessionEnded
Command
A driver sent a message on a command channel.
RequestedConfig(Value)
Seyd’s request to the publisher (video-config).
RecoveryRequest
A pilot needs a recovery point on this channel.
SignalConnected
The signaling connection came up or went down. Robots are unreachable while it is down, so a host with a UI should show it.
SignalDisconnected
SignalDenied
Signaling refused authentication — almost always a misconfiguration.
LayerChanged
The relayed simulcast layer changed (ADR 0008). A host that can force a keyframe on the incoming layer should do so — the engine switches on that layer’s next keyframe, and asking makes it the next one.
NatReport(Value)
Candidates were (re-)gathered and announced. Carries the NatReport
as JSON; the host may surface it or ignore it.
Trait Implementations§
Source§impl Clone for AgentEvent
impl Clone for AgentEvent
Source§fn clone(&self) -> AgentEvent
fn clone(&self) -> AgentEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more