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. Lets the SPA size its canvas before the first tile arrives.
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
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 RemoteCtrlReply
impl Debug for RemoteCtrlReply
Source§impl Default for RemoteCtrlReply
impl Default for RemoteCtrlReply
Source§fn default() -> RemoteCtrlReply
fn default() -> RemoteCtrlReply
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RemoteCtrlReplywhere
RemoteCtrlReply: Default,
impl<'de> Deserialize<'de> for RemoteCtrlReplywhere
RemoteCtrlReply: Default,
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 RemoteCtrlReply
impl PartialEq for RemoteCtrlReply
Source§impl Serialize for RemoteCtrlReply
impl Serialize for RemoteCtrlReply
impl StructuralPartialEq for RemoteCtrlReply
Auto Trait Implementations§
impl Freeze for RemoteCtrlReply
impl RefUnwindSafe for RemoteCtrlReply
impl Send for RemoteCtrlReply
impl Sync for RemoteCtrlReply
impl Unpin for RemoteCtrlReply
impl UnsafeUnpin for RemoteCtrlReply
impl UnwindSafe for RemoteCtrlReply
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