pub enum TransactionValue {
PendingIter {
version: CommitVersion,
key: EncodedKey,
values: EncodedValues,
},
Pending(Pending),
Committed(Committed),
}Variants§
Implementations§
Source§impl TransactionValue
impl TransactionValue
pub fn key(&self) -> &EncodedKey
pub fn version(&self) -> CommitVersion
pub fn values(&self) -> &EncodedValues
pub fn is_committed(&self) -> bool
pub fn into_multi_version_values(self) -> MultiVersionValues
Trait Implementations§
Source§impl Clone for TransactionValue
impl Clone for TransactionValue
Source§impl Debug for TransactionValue
impl Debug for TransactionValue
Source§impl From<(CommitVersion, &EncodedKey, &EncodedValues)> for TransactionValue
impl From<(CommitVersion, &EncodedKey, &EncodedValues)> for TransactionValue
Source§fn from((version, k, b): (CommitVersion, &EncodedKey, &EncodedValues)) -> Self
fn from((version, k, b): (CommitVersion, &EncodedKey, &EncodedValues)) -> Self
Converts to this type from the input type.
Source§impl From<(CommitVersion, EncodedKey, EncodedValues)> for TransactionValue
impl From<(CommitVersion, EncodedKey, EncodedValues)> for TransactionValue
Source§fn from((version, k, b): (CommitVersion, EncodedKey, EncodedValues)) -> Self
fn from((version, k, b): (CommitVersion, EncodedKey, EncodedValues)) -> Self
Converts to this type from the input type.
Source§impl From<Committed> for TransactionValue
impl From<Committed> for TransactionValue
Source§impl From<MultiVersionValues> for TransactionValue
impl From<MultiVersionValues> for TransactionValue
Source§fn from(value: MultiVersionValues) -> Self
fn from(value: MultiVersionValues) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransactionValue
impl RefUnwindSafe for TransactionValue
impl Send for TransactionValue
impl Sync for TransactionValue
impl Unpin for TransactionValue
impl UnsafeUnpin for TransactionValue
impl UnwindSafe for TransactionValue
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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