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
fn layout(&self) -> &Layout
fn generation(&self) -> u64
fn revision(&self) -> u64
fn live(&self) -> BackendKind
fn identity(&self) -> &str
fn list(&self, q: ListQuery) -> Result<ListPage, Error>
fn ready(&self, project: Option<&str>) -> Result<ListPage, Error>
fn get(&self, id: &str) -> Result<IssueDetail, Error>
fn excerpt(&self, id: &str) -> Result<Excerpt, Error>
fn search(&self, query: &str, limit: usize) -> Result<Vec<SearchHit>, Error>
fn claims( &self, holder: Option<&str>, project: Option<&str>, ) -> Result<Vec<ClaimRow>, Error>
fn agenda( &self, days: i64, project: Option<&str>, ) -> Result<Vec<AgendaRow>, Error>
fn tree(&self, id: &str) -> Result<TreeNode, Error>
fn projects(&self) -> Result<Vec<String>, Error>
fn claim(&self, id: &str, force: bool) -> Result<MutResult, Error>
fn note(&self, id: &str, text: &str) -> Result<MutResult, Error>
fn update(&self, req: UpdateReq) -> Result<MutResult, Error>
fn open(&self, id: &str) -> Result<IssueDetail, Error>
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.Source§fn refresh(&self) -> Result<(), Error>
fn refresh(&self) -> Result<(), Error>
Re-read the files. Core uses this after an out-of-band write such as
ops::create. Control is a no-op; serve sees the file event.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