pub struct DecisionBase { /* private fields */ }Expand description
Detached optimistic context; it does not retain a read view or a lock.
Implementations§
Source§impl DecisionBase
impl DecisionBase
Sourcepub fn new(
production_id: ProductionId,
revision_id: Option<RevisionId>,
sequence: u64,
) -> Result<Self>
pub fn new( production_id: ProductionId, revision_id: Option<RevisionId>, sequence: u64, ) -> Result<Self>
Validates a production-scoped revision observation.
None with sequence zero represents the initial empty journal. The
store validates membership and the revision/sequence pair when editing.
§Errors
Returns invalid argument for contradictory empty/revision values.
Sourcepub const fn production_id(self) -> ProductionId
pub const fn production_id(self) -> ProductionId
Returns the production whose facts were read.
Sourcepub const fn revision_id(self) -> Option<RevisionId>
pub const fn revision_id(self) -> Option<RevisionId>
Returns the read view’s revision, absent only for an empty journal.
Trait Implementations§
Source§impl Clone for DecisionBase
impl Clone for DecisionBase
Source§fn clone(&self) -> DecisionBase
fn clone(&self) -> DecisionBase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecisionBase
Source§impl Debug for DecisionBase
impl Debug for DecisionBase
Source§impl Display for DecisionBase
impl Display for DecisionBase
impl Eq for DecisionBase
Source§impl FromStr for DecisionBase
impl FromStr for DecisionBase
Source§impl PartialEq for DecisionBase
impl PartialEq for DecisionBase
impl StructuralPartialEq for DecisionBase
Auto Trait Implementations§
impl Freeze for DecisionBase
impl RefUnwindSafe for DecisionBase
impl Send for DecisionBase
impl Sync for DecisionBase
impl Unpin for DecisionBase
impl UnsafeUnpin for DecisionBase
impl UnwindSafe for DecisionBase
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