pub struct Workspace(pub u64);
Expand description
A workspace.
Tuple Fields§
§0: u64
Implementations§
Source§impl Workspace
impl Workspace
Sourcepub fn exists(self) -> bool
pub fn exists(self) -> bool
Returns whether this workspace existed at the time Seat::get_workspace
was called.
Sourcepub fn set_capture(self, capture: bool)
pub fn set_capture(self, capture: bool)
Sets whether the workspaces is captured.
The default is determined by set_default_workspace_capture
.
Sourcepub fn get_capture(self) -> bool
pub fn get_capture(self) -> bool
Returns whether the workspaces is captured.
Sourcepub fn toggle_capture(self)
pub fn toggle_capture(self)
Toggles whether the workspaces is captured.
Sourcepub fn move_to_output(self, output: Connector)
pub fn move_to_output(self, output: Connector)
Moves this workspace to another output.
This has no effect if the workspace is not currently being shown.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Workspace
impl<'de> Deserialize<'de> for Workspace
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
impl Copy for Workspace
impl Eq for Workspace
impl StructuralPartialEq for Workspace
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnwindSafe for Workspace
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