pub struct LocalWorkspaceManager { /* private fields */ }Implementations§
Source§impl LocalWorkspaceManager
impl LocalWorkspaceManager
pub async fn new( root: PathBuf, ) -> Result<LocalWorkspaceManager, WorkspaceManagerError>
pub fn environment_id(&self) -> EnvironmentId
Trait Implementations§
Source§impl Clone for LocalWorkspaceManager
impl Clone for LocalWorkspaceManager
Source§fn clone(&self) -> LocalWorkspaceManager
fn clone(&self) -> LocalWorkspaceManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalWorkspaceManager
impl Debug for LocalWorkspaceManager
Source§impl RepoManager for LocalWorkspaceManager
impl RepoManager for LocalWorkspaceManager
fn resolve_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
environment_id: EnvironmentId,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<RepoInfo, WorkspaceManagerError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalWorkspaceManager: 'async_trait,
fn list_repos<'life0, 'async_trait>(
&'life0 self,
environment_id: EnvironmentId,
) -> Pin<Box<dyn Future<Output = Result<Vec<RepoInfo>, WorkspaceManagerError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LocalWorkspaceManager: 'async_trait,
Source§impl WorkspaceManager for LocalWorkspaceManager
impl WorkspaceManager for LocalWorkspaceManager
fn resolve_workspace<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<WorkspaceInfo, WorkspaceManagerError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LocalWorkspaceManager: 'async_trait,
fn create_workspace<'life0, 'async_trait>(
&'life0 self,
request: CreateWorkspaceRequest,
) -> Pin<Box<dyn Future<Output = Result<WorkspaceInfo, WorkspaceManagerError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LocalWorkspaceManager: 'async_trait,
fn list_workspaces<'life0, 'async_trait>(
&'life0 self,
request: ListWorkspacesRequest,
) -> Pin<Box<dyn Future<Output = Result<Vec<WorkspaceInfo>, WorkspaceManagerError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LocalWorkspaceManager: 'async_trait,
fn open_workspace<'life0, 'async_trait>(
&'life0 self,
workspace_id: WorkspaceId,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn Workspace>, WorkspaceManagerError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LocalWorkspaceManager: 'async_trait,
fn get_workspace_status<'life0, 'async_trait>(
&'life0 self,
workspace_id: WorkspaceId,
) -> Pin<Box<dyn Future<Output = Result<WorkspaceStatus, WorkspaceManagerError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LocalWorkspaceManager: 'async_trait,
fn delete_workspace<'life0, 'async_trait>(
&'life0 self,
request: DeleteWorkspaceRequest,
) -> Pin<Box<dyn Future<Output = Result<(), WorkspaceManagerError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LocalWorkspaceManager: 'async_trait,
Auto Trait Implementations§
impl Freeze for LocalWorkspaceManager
impl !RefUnwindSafe for LocalWorkspaceManager
impl Send for LocalWorkspaceManager
impl Sync for LocalWorkspaceManager
impl Unpin for LocalWorkspaceManager
impl !UnwindSafe for LocalWorkspaceManager
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
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>
Converts
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>
Converts
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request