#[non_exhaustive]pub enum StatedInstants {
Valid(String),
Recorded(String),
Both {
valid: String,
recorded: String,
},
}Expand description
Which instants a traversal stated, for the one error that has to name them (0.13.10, W7.7, D-183).
Three cases and never zero. DbError::AttributeModeUnstated exists
because an instant was set, so a fourth case carrying neither would be a
state no construction site can reach — D-177’s objection to a Result
that cannot fail, in a different shape. Self::new returns an Option
and the None is the ordinary live traversal, resolved before any error
exists.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Valid(String)
as_of_valid alone — what was true then.
Recorded(String)
as_of_recorded alone — what we believed then.
Both
Both, which is the bitemporal cell: what did we believe at recorded
about what was true at valid.
Implementations§
Trait Implementations§
Source§impl Clone for StatedInstants
impl Clone for StatedInstants
Source§fn clone(&self) -> StatedInstants
fn clone(&self) -> StatedInstants
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StatedInstants
impl Debug for StatedInstants
Source§impl Display for StatedInstants
Rendered as the calls that produce them, which is the whole point.
impl Display for StatedInstants
Rendered as the calls that produce them, which is the whole point.
A message reading as_of(2020-06-01) names a method that has not existed
since 0.12.17 (D-174),
so a caller who goes looking for it finds nothing — and, worse, is not told
which of the two axes the instant they set landed on. as_of_valid(…) and
as_of_recorded(…) are what a caller typed and what a caller can change.
impl Eq for StatedInstants
Source§impl PartialEq for StatedInstants
impl PartialEq for StatedInstants
impl StructuralPartialEq for StatedInstants
Auto Trait Implementations§
impl Freeze for StatedInstants
impl RefUnwindSafe for StatedInstants
impl Send for StatedInstants
impl Sync for StatedInstants
impl Unpin for StatedInstants
impl UnsafeUnpin for StatedInstants
impl UnwindSafe for StatedInstants
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request