pub struct Workspace { /* private fields */ }Expand description
One logical workspace opened through a provider.
Implementations§
Source§impl Workspace
impl Workspace
pub fn from_descriptor( provider: Arc<dyn WorkspaceProvider>, descriptor: WorkspaceDescriptor, ) -> Self
pub async fn open( provider: Arc<dyn WorkspaceProvider>, locator: impl AsRef<str>, ) -> Result<Self, WorkspaceError>
pub fn id(&self) -> WorkspaceId
pub fn name(&self) -> &str
pub fn metadata(&self) -> &BTreeMap<String, String>
pub fn head(&self, name: impl Into<String>) -> WorkspaceHeadBuilder
pub async fn reopen( &self, binding: &WorkspaceBinding, ) -> Result<WorkspaceHead, WorkspaceError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Workspace
impl !UnwindSafe for Workspace
impl Freeze for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnsafeUnpin 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