Struct scylla::frame::value::LegacyBatchValuesFirstSerialized
source · pub struct LegacyBatchValuesFirstSerialized<'f, T> { /* private fields */ }
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
Expand description
Allows reusing already-serialized first value
We’ll need to build a LegacySerializedValues
for the first ~ValueList
of a batch to figure out the shard (#448).
Once that is done, we can use that instead of re-serializing.
This struct implements both BatchValues
and BatchValuesIterator
for that purpose
Implementations§
source§impl<'f, T> LegacyBatchValuesFirstSerialized<'f, T>where
T: LegacyBatchValues,
impl<'f, T> LegacyBatchValuesFirstSerialized<'f, T>where
T: LegacyBatchValues,
pub fn new( batch_values: T, already_serialized_first: Option<&'f LegacySerializedValues>, ) -> LegacyBatchValuesFirstSerialized<'f, T>
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
Trait Implementations§
source§impl<'f, BV> LegacyBatchValues for LegacyBatchValuesFirstSerialized<'f, BV>where
BV: LegacyBatchValues,
impl<'f, BV> LegacyBatchValues for LegacyBatchValuesFirstSerialized<'f, BV>where
BV: LegacyBatchValues,
§type LegacyBatchValuesIter<'r> = LegacyBatchValuesFirstSerialized<'f, <BV as LegacyBatchValues>::LegacyBatchValuesIter<'r>>
where
LegacyBatchValuesFirstSerialized<'f, BV>: 'r
type LegacyBatchValuesIter<'r> = LegacyBatchValuesFirstSerialized<'f, <BV as LegacyBatchValues>::LegacyBatchValuesIter<'r>> where LegacyBatchValuesFirstSerialized<'f, BV>: 'r
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
For some unknown reason, this type, when not resolved to a concrete type for a given async function,
cannot live across await boundaries while maintaining the corresponding future
Send
, unless 'r: 'static
Read moresource§fn batch_values_iter(
&self,
) -> <LegacyBatchValuesFirstSerialized<'f, BV> as LegacyBatchValues>::LegacyBatchValuesIter<'_>
fn batch_values_iter( &self, ) -> <LegacyBatchValuesFirstSerialized<'f, BV> as LegacyBatchValues>::LegacyBatchValuesIter<'_>
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
source§impl<'a, 'f, IT> LegacyBatchValuesIterator<'a> for LegacyBatchValuesFirstSerialized<'f, IT>where
'f: 'a,
IT: LegacyBatchValuesIterator<'a>,
impl<'a, 'f, IT> LegacyBatchValuesIterator<'a> for LegacyBatchValuesFirstSerialized<'f, IT>where
'f: 'a,
IT: LegacyBatchValuesIterator<'a>,
source§fn next_serialized(
&mut self,
) -> Option<Result<Cow<'a, LegacySerializedValues>, SerializeValuesError>>
fn next_serialized( &mut self, ) -> Option<Result<Cow<'a, LegacySerializedValues>, SerializeValuesError>>
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
source§fn write_next_to_request(
&mut self,
buf: &mut impl BufMut,
) -> Option<Result<(), SerializeValuesError>>
fn write_next_to_request( &mut self, buf: &mut impl BufMut, ) -> Option<Result<(), SerializeValuesError>>
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
Auto Trait Implementations§
impl<'f, T> Freeze for LegacyBatchValuesFirstSerialized<'f, T>where
T: Freeze,
impl<'f, T> RefUnwindSafe for LegacyBatchValuesFirstSerialized<'f, T>where
T: RefUnwindSafe,
impl<'f, T> Send for LegacyBatchValuesFirstSerialized<'f, T>where
T: Send,
impl<'f, T> Sync for LegacyBatchValuesFirstSerialized<'f, T>where
T: Sync,
impl<'f, T> Unpin for LegacyBatchValuesFirstSerialized<'f, T>where
T: Unpin,
impl<'f, T> UnwindSafe for LegacyBatchValuesFirstSerialized<'f, T>where
T: UnwindSafe,
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> 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