pub struct RemoteCtrlReply {
pub accepted: bool,
pub reason: Option<String>,
pub screen_w: Option<u32>,
pub screen_h: Option<u32>,
}Expand description
Agent → backend reply to a RemoteCtrl.
Fields§
§accepted: boolThe agent acted on the request.
reason: Option<String>Why not, when accepted is false — no capture-capable session, the
user declined consent, another session already holds the output.
Surfaced to the operator verbatim, so it must read as an
explanation rather than an error code.
screen_w: Option<u32>Desktop size, when known — which in practice is never, on accept.
The agent answers Start as soon as it has spawned its capture
child, before that child has taken a frame, deliberately: blocking the
accept on a display round-trip would stall the operator’s click. So it
sends None here and the size reaches the viewer on the first tile
instead, which is why FrameMeta repeats screen_w / screen_h on
every one of them.
The fields remain because an agent that already knows the geometry — one resuming a session, say — may report it, and a viewer that gets it can size its canvas a frame earlier. Treat a value as an optimisation; never wait for it.
screen_h: Option<u32>Implementations§
Trait Implementations§
Source§impl Clone for RemoteCtrlReply
impl Clone for RemoteCtrlReply
Source§fn clone(&self) -> RemoteCtrlReply
fn clone(&self) -> RemoteCtrlReply
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more