pub struct WorkspaceManager { /* private fields */ }Expand description
Manager for multiple workspaces
Implementations§
Source§impl WorkspaceManager
impl WorkspaceManager
Sourcepub fn set_active(&mut self, id: &str) -> Result<()>
pub fn set_active(&mut self, id: &str) -> Result<()>
Set the active workspace
Sourcepub fn get_active(&self) -> Option<&Workspace>
pub fn get_active(&self) -> Option<&Workspace>
Get the active workspace
Sourcepub fn get_active_mut(&mut self) -> Option<&mut Workspace>
pub fn get_active_mut(&mut self) -> Option<&mut Workspace>
Get the active workspace mutably
Trait Implementations§
Source§impl Debug for WorkspaceManager
impl Debug for WorkspaceManager
Source§impl Default for WorkspaceManager
impl Default for WorkspaceManager
Source§fn default() -> WorkspaceManager
fn default() -> WorkspaceManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorkspaceManager
impl RefUnwindSafe for WorkspaceManager
impl Send for WorkspaceManager
impl Sync for WorkspaceManager
impl Unpin for WorkspaceManager
impl UnwindSafe for WorkspaceManager
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