pub struct IssueLog { /* private fields */ }Expand description
Persistent log of Issue records: one canonical-JSON file per issue
under <root>/issues/, atomic writes via tempfile + rename, idempotent on
re-puts. Mirrors crate::IntentLog.
Implementations§
Source§impl IssueLog
impl IssueLog
Source§impl IssueLog
impl IssueLog
Sourcepub fn put_proposal(&self, p: &AcceptanceProposal) -> Result<()>
pub fn put_proposal(&self, p: &AcceptanceProposal) -> Result<()>
Idempotent, like put.
pub fn get_proposal( &self, id: &ProposalId, ) -> Result<Option<AcceptanceProposal>>
Sourcepub fn proposals_for(
&self,
issue_id: &IssueId,
) -> Result<Vec<AcceptanceProposal>>
pub fn proposals_for( &self, issue_id: &IssueId, ) -> Result<Vec<AcceptanceProposal>>
Every proposal for issue_id, oldest first.
Auto Trait Implementations§
impl Freeze for IssueLog
impl RefUnwindSafe for IssueLog
impl Send for IssueLog
impl Sync for IssueLog
impl Unpin for IssueLog
impl UnsafeUnpin for IssueLog
impl UnwindSafe for IssueLog
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