pub struct WorkspaceRegistry { /* private fields */ }Will be extracted to mockforge-workspace crate
Expand description
Workspace registry for managing multiple workspaces
Implementationsยง
Sourceยงimpl WorkspaceRegistry
impl WorkspaceRegistry
Sourcepub fn new() -> Self
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn new() -> Self
Will be extracted to mockforge-workspace crate
Create a new workspace registry
Sourcepub fn add_workspace(&mut self, workspace: Workspace) -> Result<EntityId>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn add_workspace(&mut self, workspace: Workspace) -> Result<EntityId>
Will be extracted to mockforge-workspace crate
Add a workspace
Sourcepub fn get_workspace(&self, id: &str) -> Option<&Workspace>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn get_workspace(&self, id: &str) -> Option<&Workspace>
Will be extracted to mockforge-workspace crate
Get a workspace by ID
Sourcepub fn get_workspace_mut(&mut self, id: &str) -> Option<&mut Workspace>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn get_workspace_mut(&mut self, id: &str) -> Option<&mut Workspace>
Will be extracted to mockforge-workspace crate
Get a workspace by ID (mutable)
Sourcepub fn remove_workspace(&mut self, id: &str) -> Result<()>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn remove_workspace(&mut self, id: &str) -> Result<()>
Will be extracted to mockforge-workspace crate
Remove a workspace
Sourcepub fn set_active_workspace(&mut self, id: Option<String>) -> Result<()>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn set_active_workspace(&mut self, id: Option<String>) -> Result<()>
Will be extracted to mockforge-workspace crate
Set the active workspace
Sourcepub fn get_active_workspace(&self) -> Option<&Workspace>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn get_active_workspace(&self) -> Option<&Workspace>
Will be extracted to mockforge-workspace crate
Get the active workspace
Sourcepub fn get_active_workspace_id(&self) -> Option<&str>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn get_active_workspace_id(&self) -> Option<&str>
Will be extracted to mockforge-workspace crate
Get the active workspace ID
Sourcepub fn get_workspaces(&self) -> Vec<&Workspace>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn get_workspaces(&self) -> Vec<&Workspace>
Will be extracted to mockforge-workspace crate
Get all workspaces
Sourcepub fn get_workspaces_ordered(&self) -> Vec<&Workspace>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn get_workspaces_ordered(&self) -> Vec<&Workspace>
Will be extracted to mockforge-workspace crate
Get all workspaces sorted by order
Sourcepub fn update_workspaces_order(
&mut self,
workspace_ids: Vec<String>,
) -> Result<()>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn update_workspaces_order( &mut self, workspace_ids: Vec<String>, ) -> Result<()>
Will be extracted to mockforge-workspace crate
Update the order of workspaces
Sourcepub fn get_all_routes(&self) -> Vec<Route>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn get_all_routes(&self) -> Vec<Route>
Will be extracted to mockforge-workspace crate
Get all routes from all workspaces
Sourcepub fn create_route_registry(&self) -> Result<RouteRegistry>
๐Deprecated: Will be extracted to mockforge-workspace crate
pub fn create_route_registry(&self) -> Result<RouteRegistry>
Will be extracted to mockforge-workspace crate
Create a route registry from all workspaces
Trait Implementationsยง
Sourceยงimpl Clone for WorkspaceRegistry
impl Clone for WorkspaceRegistry
Sourceยงfn clone(&self) -> WorkspaceRegistry
fn clone(&self) -> WorkspaceRegistry
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for WorkspaceRegistry
impl Debug for WorkspaceRegistry
Auto Trait Implementationsยง
impl Freeze for WorkspaceRegistry
impl RefUnwindSafe for WorkspaceRegistry
impl Send for WorkspaceRegistry
impl Sync for WorkspaceRegistry
impl Unpin for WorkspaceRegistry
impl UnsafeUnpin for WorkspaceRegistry
impl UnwindSafe for WorkspaceRegistry
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more