Struct WindowHandle
pub struct WindowHandle {
pub kind: String,
pub value: Value,
}Expand description
Opaque, platform-tagged handle naming a client’s terminal window.
The daemon stores and forwards a WindowHandle without ever inspecting
value; only the client that produced it and the window-manager plugin
that consumes it interpret the payload for a given kind. See the
KIND_* constants for the payload shape of each kind defined at v1.0.
Because value is a self-describing CBOR tree
([ciborium::value::Value]), which holds no Eq, this type derives
PartialEq only; do not add Eq or Hash.
Fields§
§kind: StringNamespaced discriminator naming the payload schema, e.g.
KIND_WINDOWS_HWND. Determines how value is interpreted.
value: ValueOpaque platform payload; the daemon never introspects it.
Trait Implementations§
§impl Clone for WindowHandle
impl Clone for WindowHandle
§fn clone(&self) -> WindowHandle
fn clone(&self) -> WindowHandle
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 more§impl Debug for WindowHandle
impl Debug for WindowHandle
§impl<'de> Deserialize<'de> for WindowHandle
impl<'de> Deserialize<'de> for WindowHandle
§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
§impl PartialEq for WindowHandle
impl PartialEq for WindowHandle
§impl Serialize for WindowHandle
impl Serialize for WindowHandle
impl StructuralPartialEq for WindowHandle
Auto Trait Implementations§
impl Freeze for WindowHandle
impl RefUnwindSafe for WindowHandle
impl Send for WindowHandle
impl Sync for WindowHandle
impl Unpin for WindowHandle
impl UnsafeUnpin for WindowHandle
impl UnwindSafe for WindowHandle
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