pub struct WorktreeStore { /* private fields */ }Implementations§
Source§impl WorktreeStore
impl WorktreeStore
pub fn new(db: Database) -> WorktreeStore
pub async fn save(&self, worktree: &Worktree) -> Result<(), ServerError>
pub async fn get(&self, id: &str) -> Result<Option<Worktree>, ServerError>
pub async fn list_by_codebase( &self, codebase_id: &str, ) -> Result<Vec<Worktree>, ServerError>
pub async fn list_by_workspace( &self, workspace_id: &str, ) -> Result<Vec<Worktree>, ServerError>
pub async fn update_status( &self, id: &str, status: &str, error_message: Option<&str>, ) -> Result<(), ServerError>
pub async fn assign_session( &self, id: &str, session_id: Option<&str>, ) -> Result<(), ServerError>
pub async fn delete(&self, id: &str) -> Result<(), ServerError>
pub async fn find_by_branch( &self, codebase_id: &str, branch: &str, ) -> Result<Option<Worktree>, ServerError>
Auto Trait Implementations§
impl Freeze for WorktreeStore
impl RefUnwindSafe for WorktreeStore
impl Send for WorktreeStore
impl Sync for WorktreeStore
impl Unpin for WorktreeStore
impl UnsafeUnpin for WorktreeStore
impl UnwindSafe for WorktreeStore
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> 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 more