pub struct Drafts<'a> { /* private fields */ }Expand description
The served store’s draft ledger, for the database database.
Implementations§
Trait Implementations§
Source§impl Executor for Drafts<'_>
impl Executor for Drafts<'_>
Source§fn receipt(&self, _draft: &str) -> Result<Option<Execution>, Failure>
fn receipt(&self, _draft: &str) -> Result<Option<Execution>, Failure>
The outcome is keyed by the branch and request id inside the draft’s words, which an id alone does not carry, so it is read where the change is applied: receipt-first, before anything is written.
Source§fn execute_and_record(
&mut self,
draft: &ApprovedDraft,
) -> Result<Execution, Failure>
fn execute_and_record( &mut self, draft: &ApprovedDraft, ) -> Result<Execution, Failure>
A draft whose words are not a change on exactly the approved resource is refused on execution by its own name, so Lys records the refusal and the page moves on. A failure of the store itself stays an error: nothing is acknowledged, and the next pull asks again.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Drafts<'a>
impl<'a> !UnwindSafe for Drafts<'a>
impl<'a> Freeze for Drafts<'a>
impl<'a> Send for Drafts<'a>
impl<'a> Sync for Drafts<'a>
impl<'a> Unpin for Drafts<'a>
impl<'a> UnsafeUnpin for Drafts<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.