pub struct CoreBackend { /* private fields */ }Expand description
One-shot parse of the tracker, refreshed after mutations and wait.
Implementations§
Trait Implementations§
Source§impl BoardBackend for CoreBackend
impl BoardBackend for CoreBackend
Source§fn generation(&self) -> u64
fn generation(&self) -> u64
File-watcher generation.
Source§fn live(&self) -> BackendKind
fn live(&self) -> BackendKind
Which store this backend is.
Source§fn identity(&self) -> &str
fn identity(&self) -> &str
Claim and update identity (core: constructor; control: serve
initialize).Source§fn list(&self, q: ListQuery) -> Result<ListPage, Error>
fn list(&self, q: ListQuery) -> Result<ListPage, Error>
Filtered issue list for the List pane. Read more
Source§fn ready(&self, project: Option<&str>) -> Result<ListPage, Error>
fn ready(&self, project: Option<&str>) -> Result<ListPage, Error>
Actionable ready queue, optionally scoped to
project. Read moreSource§fn excerpt(&self, id: &str) -> Result<Excerpt, Error>
fn excerpt(&self, id: &str) -> Result<Excerpt, Error>
On-disk heading range, capped and screened for secrets. Read more
Source§fn search(&self, query: &str, limit: usize) -> Result<Vec<SearchHit>, Error>
fn search(&self, query: &str, limit: usize) -> Result<Vec<SearchHit>, Error>
Title and body search hits, capped at
limit. Read moreSource§fn claims(
&self,
holder: Option<&str>,
project: Option<&str>,
) -> Result<Vec<ClaimRow>, Error>
fn claims( &self, holder: Option<&str>, project: Option<&str>, ) -> Result<Vec<ClaimRow>, Error>
Open claims, optionally filtered by holder and project. Read more
Source§fn agenda(
&self,
days: i64,
project: Option<&str>,
) -> Result<Vec<AgendaRow>, Error>
fn agenda( &self, days: i64, project: Option<&str>, ) -> Result<Vec<AgendaRow>, Error>
Deadlines and scheduled dates inside
days. Read moreSource§fn tree(&self, id: &str) -> Result<TreeNode, Error>
fn tree(&self, id: &str) -> Result<TreeNode, Error>
Parent and child tree rooted at
id. Read moreRelated issues by graph walk and text overlap. Read more
Source§fn recall(&self, id: &str, depth: usize) -> Result<Recall, Error>
fn recall(&self, id: &str, depth: usize) -> Result<Recall, Error>
The working set for
id: plan, declared inputs and their deeds. Read moreSource§fn deed(&self, id: &str, add: &[String]) -> Result<MutResult, Error>
fn deed(&self, id: &str, add: &[String]) -> Result<MutResult, Error>
Cite deed accessions on
id. Read moreSource§fn projects(&self) -> Result<Vec<String>, Error>
fn projects(&self) -> Result<Vec<String>, Error>
Project names under the layout prefix. Read more
Source§fn note(&self, id: &str, text: &str) -> Result<MutResult, Error>
fn note(&self, id: &str, text: &str) -> Result<MutResult, Error>
Append a one-line logbook note. Read more
Source§fn update(&self, req: UpdateReq) -> Result<MutResult, Error>
fn update(&self, req: UpdateReq) -> Result<MutResult, Error>
Change state, priority, or blocker edges. Read more
Source§fn wait(&self, last: u64, timeout_ms: u64) -> Result<u64, Error>
fn wait(&self, last: u64, timeout_ms: u64) -> Result<u64, Error>
Core: wait on the file generation. Control: wait for
vault/changed. Read moreSource§fn refresh(&self) -> Result<(), Error>
fn refresh(&self) -> Result<(), Error>
Re-read the files. Core uses this after an out-of-band write. Control
is a no-op; serve sees the file event. Read more
Source§fn last_since_revision(&self) -> Option<Option<u64>>
fn last_since_revision(&self) -> Option<Option<u64>>
Last
since_revision sent on list/ready. None means the field was
omitted. Default is “not recorded”.Source§fn invalidate_since(&self)
fn invalidate_since(&self)
Drop
since_revision on the next list/ready. Serve unchanged is
catalog-wide, so a pane or project change must fetch a full page.Auto Trait Implementations§
impl !Freeze for CoreBackend
impl RefUnwindSafe for CoreBackend
impl Send for CoreBackend
impl Sync for CoreBackend
impl Unpin for CoreBackend
impl UnsafeUnpin for CoreBackend
impl UnwindSafe for CoreBackend
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> 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