pub enum Response {
Show 13 variants
Handled,
Version(String),
Outputs(HashMap<String, Output>),
Workspaces(Vec<Workspace>),
Windows(Vec<Window>),
Layers(Vec<LayerSurface>),
KeyboardLayouts(KeyboardLayouts),
FocusedOutput(Option<Output>),
FocusedWindow(Option<Window>),
PickedWindow(Option<Window>),
PickedColor(Option<PickedColor>),
OutputConfigChanged(OutputConfigChanged),
OverviewState(Overview),
}
Expand description
Successful response from niri to client.
Variants§
Handled
A request that does not need a response was handled successfully.
Version(String)
The version string for the running niri instance.
Outputs(HashMap<String, Output>)
Information about connected outputs.
Map from output name to output info.
Workspaces(Vec<Workspace>)
Information about workspaces.
Windows(Vec<Window>)
Information about open windows.
Layers(Vec<LayerSurface>)
Information about layer-shell surfaces.
KeyboardLayouts(KeyboardLayouts)
Information about the keyboard layout.
FocusedOutput(Option<Output>)
Information about the focused output.
FocusedWindow(Option<Window>)
Information about the focused window.
PickedWindow(Option<Window>)
Information about the picked window.
PickedColor(Option<PickedColor>)
Information about the picked color.
OutputConfigChanged(OutputConfigChanged)
Output configuration change result.
OverviewState(Overview)
Information about the overview.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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