pub struct SectionService { /* private fields */ }Expand description
Resolves the live source(s) backing each section from the current bindings.
Implementations§
Source§impl SectionService
impl SectionService
pub fn new( config: Arc<ConfigService>, resolver: Arc<ConnectionResolver>, ) -> Self
Sourcepub async fn pull_request_feeds(&self) -> Result<Vec<PullRequestFeed>>
pub async fn pull_request_feeds(&self) -> Result<Vec<PullRequestFeed>>
One connection feeding the PR / Work-Item list (for aggregation).
pub async fn work_item_feeds(&self) -> Result<Vec<WorkItemFeed>>
Sourcepub async fn notification_feeds(&self) -> Result<Vec<NotificationFeed>>
pub async fn notification_feeds(&self) -> Result<Vec<NotificationFeed>>
Every connection that exposes a notification feed (across all connections, not just section-bound ones) — the inbox aggregates them all.
Sourcepub async fn pull_request_source(
&self,
) -> Result<Option<Arc<dyn PullRequestSource>>>
pub async fn pull_request_source( &self, ) -> Result<Option<Arc<dyn PullRequestSource>>>
The first bound PR source (back-compat for single-source call sites).
pub async fn work_item_source(&self) -> Result<Option<Arc<dyn WorkItemSource>>>
Sourcepub async fn pipeline_source_for(
&self,
connection_id: &str,
) -> Result<Option<Arc<dyn PipelineSource>>>
pub async fn pipeline_source_for( &self, connection_id: &str, ) -> Result<Option<Arc<dyn PipelineSource>>>
Resolves a connection’s pipeline source directly, regardless of whether it is currently subscribed — used to discover definitions before subscribing.
Sourcepub async fn discover_repositories(
&self,
connection_id: &str,
) -> Result<RepositoryPage>
pub async fn discover_repositories( &self, connection_id: &str, ) -> Result<RepositoryPage>
The repositories a connection’s credentials can reach, for its scope picker.
pub async fn pipeline_feeds(&self) -> Result<Vec<PipelineFeed>>
Auto Trait Implementations§
impl !RefUnwindSafe for SectionService
impl !UnwindSafe for SectionService
impl Freeze for SectionService
impl Send for SectionService
impl Sync for SectionService
impl Unpin for SectionService
impl UnsafeUnpin for SectionService
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