pub(crate) enum RawRecordContinuationInternal {
V1(RawRecordContinuationInternalV1),
}
Expand description
Internal representation of RawRecord
continuation.
We need define this type so we can implement Continuation
trait on it. In addition it has TryFrom<Bytes> for RawRecordContinuationInternal
and
TryFrom<RawRecordContinuationInternal> for Bytes
traits
implemented so we can convert between Bytes
and
KeyValueContinuationInternal
.
We do not implement new_v1_begin_marker()
,
new_v1_key_marker(..)
, new_v1_end_marker()
for
RawRecordContinuationInternal
because it is just a wrapper
around pb::KeyValueContinuationInternalV1
.
Values of RawRecordContinuationInternal
can be generated using
new_v1_begin_marker()
, new_v1_key_marker(..)
,
new_v1_end_marker()
methods on KeyValueContinuationInternal
,
extracting out pb::KeyValueContinuationInternalV1
value and
using the From
trait.
Variants§
Trait Implementations§
source§impl Clone for RawRecordContinuationInternal
impl Clone for RawRecordContinuationInternal
source§fn clone(&self) -> RawRecordContinuationInternal
fn clone(&self) -> RawRecordContinuationInternal
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Continuation for RawRecordContinuationInternal
impl Continuation for RawRecordContinuationInternal
source§fn is_begin_marker(&self) -> bool
fn is_begin_marker(&self) -> bool
source§fn is_end_marker(&self) -> bool
fn is_end_marker(&self) -> bool
source§impl From<KeyValueContinuationInternalV1> for RawRecordContinuationInternal
impl From<KeyValueContinuationInternalV1> for RawRecordContinuationInternal
source§fn from(
pb_keyvalue_continuation_internal_v1: KeyValueContinuationInternalV1
) -> RawRecordContinuationInternal
fn from( pb_keyvalue_continuation_internal_v1: KeyValueContinuationInternalV1 ) -> RawRecordContinuationInternal
source§impl PartialEq<RawRecordContinuationInternal> for RawRecordContinuationInternal
impl PartialEq<RawRecordContinuationInternal> for RawRecordContinuationInternal
source§fn eq(&self, other: &RawRecordContinuationInternal) -> bool
fn eq(&self, other: &RawRecordContinuationInternal) -> bool
self
and other
values to be equal, and is used
by ==
.