Struct scylla_cql::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: LegacyBatchValues> LegacyBatchValuesFirstSerialized<'f, T>
impl<'f, T: LegacyBatchValues> LegacyBatchValuesFirstSerialized<'f, T>
pub fn new( batch_values: T, already_serialized_first: Option<&'f LegacySerializedValues>, ) -> Self
👎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> LegacyBatchValues for LegacyBatchValuesFirstSerialized<'f, BV>
impl<'f, BV: LegacyBatchValues> LegacyBatchValues for LegacyBatchValuesFirstSerialized<'f, BV>
§type LegacyBatchValuesIter<'r> = LegacyBatchValuesFirstSerialized<'f, <BV as LegacyBatchValues>::LegacyBatchValuesIter<'r>>
where
Self: 'r
type LegacyBatchValuesIter<'r> = LegacyBatchValuesFirstSerialized<'f, <BV as LegacyBatchValues>::LegacyBatchValuesIter<'r>> where Self: '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) -> Self::LegacyBatchValuesIter<'_>
fn batch_values_iter(&self) -> Self::LegacyBatchValuesIter<'_>
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
source§impl<'a, 'f: 'a, IT: LegacyBatchValuesIterator<'a>> LegacyBatchValuesIterator<'a> for LegacyBatchValuesFirstSerialized<'f, IT>
impl<'a, 'f: 'a, IT: LegacyBatchValuesIterator<'a>> LegacyBatchValuesIterator<'a> for LegacyBatchValuesFirstSerialized<'f, IT>
source§fn next_serialized(&mut self) -> Option<SerializedResult<'a>>
fn next_serialized(&mut self) -> Option<SerializedResult<'a>>
👎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