Struct swayipc_async::Node[][src]

#[non_exhaustive]pub struct Node {
    pub id: i64,
    pub name: Option<String>,
    pub node_type: NodeType,
    pub border: NodeBorder,
    pub current_border_width: i32,
    pub layout: NodeLayout,
    pub percent: Option<f64>,
    pub rect: Rect,
    pub window_rect: Rect,
    pub deco_rect: Rect,
    pub geometry: Rect,
    pub urgent: bool,
    pub focused: bool,
    pub focus: Vec<i64, Global>,
    pub nodes: Vec<Node, Global>,
    pub floating_nodes: Vec<Node, Global>,
    pub sticky: bool,
    pub representation: Option<String>,
    pub fullscreen_mode: Option<u8>,
    pub app_id: Option<String>,
    pub pid: Option<i32>,
    pub window: Option<i64>,
    pub num: Option<i32>,
    pub window_properties: Option<WindowProperties>,
    pub marks: Vec<String, Global>,
    pub inhibit_idle: Option<bool>,
    pub idle_inhibitors: Option<IdleInhibitors>,
    pub shell: Option<ShellType>,
    pub visible: Option<bool>,
}

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct {{ .. }} syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
id: i64name: Option<String>node_type: NodeTypeborder: NodeBordercurrent_border_width: i32layout: NodeLayoutpercent: Option<f64>rect: Rectwindow_rect: Rectdeco_rect: Rectgeometry: Recturgent: boolfocused: boolfocus: Vec<i64, Global>nodes: Vec<Node, Global>floating_nodes: Vec<Node, Global>sticky: boolrepresentation: Option<String>fullscreen_mode: Option<u8>app_id: Option<String>pid: Option<i32>window: Option<i64>num: Option<i32>window_properties: Option<WindowProperties>marks: Vec<String, Global>inhibit_idle: Option<bool>idle_inhibitors: Option<IdleInhibitors>shell: Option<ShellType>visible: Option<bool>

Implementations

impl Node[src]

pub fn find_as_ref(&self, predicate: fn(&Node) -> bool) -> Option<&Node>[src]

pub fn find(self, predicate: fn(&Node) -> bool) -> Option<Node>[src]

pub fn find_focused_as_ref(&self, predicate: fn(&Node) -> bool) -> Option<&Node>[src]

pub fn find_focused(self, predicate: fn(&Node) -> bool) -> Option<Node>[src]

Trait Implementations

impl Debug for Node[src]

impl<'de> Deserialize<'de> for Node[src]

impl PartialEq<Node> for Node[src]

impl StructuralPartialEq for Node[src]

Auto Trait Implementations

impl RefUnwindSafe for Node

impl Send for Node

impl Sync for Node

impl Unpin for Node

impl UnwindSafe for Node

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.