pub struct WorkspaceHead { /* private fields */ }Expand description
One stable, reopenable mutable view of a workspace.
Implementations§
Source§impl WorkspaceHead
impl WorkspaceHead
Sourcepub fn provider(&self) -> Arc<dyn WorkspaceProvider> ⓘ
pub fn provider(&self) -> Arc<dyn WorkspaceProvider> ⓘ
Provider that owns this head. Applications normally use lifecycle methods on the head; the facade uses this handle to make typed resume available for the Agent lifetime.
pub fn workspace_id(&self) -> WorkspaceId
pub fn id(&self) -> WorkspaceHeadId
pub fn name(&self) -> &str
pub fn base(&self) -> Option<&str>
pub fn access(&self) -> WorkspaceHeadAccess
pub fn binding(&self) -> &WorkspaceBinding
pub fn file_system(&self) -> Arc<dyn SessionFileSystem> ⓘ
pub async fn checkpoint(&self) -> Result<WorkspaceCheckpoint, WorkspaceError>
pub async fn status(&self) -> Result<WorkspaceHeadStatus, WorkspaceError>
pub async fn diff(&self) -> Result<WorkspaceDiff, WorkspaceError>
pub async fn archive(&self) -> Result<(), WorkspaceError>
pub async fn destroy(self) -> Result<(), WorkspaceError>
Sourcepub async fn fork(
&self,
name: impl Into<String>,
) -> Result<WorkspaceHead, WorkspaceError>
pub async fn fork( &self, name: impl Into<String>, ) -> Result<WorkspaceHead, WorkspaceError>
Create a new isolated head from this head’s current checkpoint.
Trait Implementations§
Source§impl Clone for WorkspaceHead
impl Clone for WorkspaceHead
Source§fn clone(&self) -> WorkspaceHead
fn clone(&self) -> WorkspaceHead
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for WorkspaceHead
impl !UnwindSafe for WorkspaceHead
impl Freeze for WorkspaceHead
impl Send for WorkspaceHead
impl Sync for WorkspaceHead
impl Unpin for WorkspaceHead
impl UnsafeUnpin for WorkspaceHead
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