pub enum Response {
Handled,
Version(String),
Outputs(HashMap<String, Output>),
Workspaces(Vec<Workspace>),
Windows(Vec<Window>),
Layers(Vec<LayerSurface>),
KeyboardLayouts(KeyboardLayouts),
FocusedOutput(Option<Output>),
FocusedWindow(Option<Window>),
OutputConfigChanged(OutputConfigChanged),
}
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.
OutputConfigChanged(OutputConfigChanged)
Output configuration change result.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)