pub struct ProjectStoreContextSource { /* private fields */ }Implementations§
Source§impl ProjectStoreContextSource
impl ProjectStoreContextSource
pub fn new(store: Arc<ProjectStore>) -> Self
Trait Implementations§
Source§impl ProjectContextSource for ProjectStoreContextSource
impl ProjectContextSource for ProjectStoreContextSource
fn find_project<'life0, 'life1, 'async_trait>(
&'life0 self,
project_id: &'life1 ProjectId,
) -> Pin<Box<dyn Future<Output = Result<Option<ProjectDescriptor>, ProjectContextError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_projects<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ProjectDescriptor>, ProjectContextError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn find_workspace_owner<'life0, 'life1, 'async_trait>(
&'life0 self,
workspace: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<Option<ProjectId>, ProjectContextError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_workspace_owner<'life0, 'life1, 'async_trait>(
&'life0 self,
workspace: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<Option<ProjectId>, ProjectContextError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolve the global Project owner for an exact workspace. Sources that
cannot provide a registry-wide answer remain backward compatible.
Auto Trait Implementations§
impl Freeze for ProjectStoreContextSource
impl RefUnwindSafe for ProjectStoreContextSource
impl Send for ProjectStoreContextSource
impl Sync for ProjectStoreContextSource
impl Unpin for ProjectStoreContextSource
impl UnsafeUnpin for ProjectStoreContextSource
impl UnwindSafe for ProjectStoreContextSource
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