pub struct GamescopeInstance {
pub display_no: u32,
pub pipewire_node_id: u32,
pub eis_socket_path: String,
}Expand description
A gamescope instance discovered from the session.
Combines the display number, PipeWire capture node and libei (EIS) socket of a single gamescope instance into one model.
Fields§
§display_no: u32Display number (n in gamescope-<n>).
pipewire_node_id: u32PipeWire node ID. Usable as pw_node_id in
crate::common::LinuxControllerConfig. 0 means no capture node.
eis_socket_path: StringEIS socket path. Usable as eis_socket_path in
crate::common::LinuxControllerConfig. Empty when no EIS socket exists.
Trait Implementations§
Source§impl Clone for GamescopeInstance
impl Clone for GamescopeInstance
Source§fn clone(&self) -> GamescopeInstance
fn clone(&self) -> GamescopeInstance
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 GamescopeInstance
impl Debug for GamescopeInstance
Source§impl<'de> Deserialize<'de> for GamescopeInstance
impl<'de> Deserialize<'de> for GamescopeInstance
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 GamescopeInstance
impl RefUnwindSafe for GamescopeInstance
impl Send for GamescopeInstance
impl Sync for GamescopeInstance
impl Unpin for GamescopeInstance
impl UnsafeUnpin for GamescopeInstance
impl UnwindSafe for GamescopeInstance
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