pub enum ChangeEvent<K, V> {
Upsert(KV<K, V>),
ChangeId(K, K),
Delete(K),
}Variants§
Implementations§
Trait Implementations§
Source§impl<K: Clone, V: Clone> Clone for ChangeEvent<K, V>
impl<K: Clone, V: Clone> Clone for ChangeEvent<K, V>
Source§fn clone(&self) -> ChangeEvent<K, V>
fn clone(&self) -> ChangeEvent<K, V>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'_derivative_strum, K, V> From<&'_derivative_strum ChangeEvent<K, V>> for &'static str
impl<'_derivative_strum, K, V> From<&'_derivative_strum ChangeEvent<K, V>> for &'static str
Source§fn from(x: &'_derivative_strum ChangeEvent<K, V>) -> &'static str
fn from(x: &'_derivative_strum ChangeEvent<K, V>) -> &'static str
Converts to this type from the input type.
Source§impl<K, V> From<ChangeEvent<K, V>> for &'static str
impl<K, V> From<ChangeEvent<K, V>> for &'static str
Source§fn from(x: ChangeEvent<K, V>) -> &'static str
fn from(x: ChangeEvent<K, V>) -> &'static str
Converts to this type from the input type.
Source§impl<K, V> Rapira for ChangeEvent<K, V>
impl<K, V> Rapira for ChangeEvent<K, V>
const STATIC_SIZE: Option<usize>
const MIN_SIZE: usize
Source§fn from_slice(slice: &mut &[u8]) -> Result<Self>where
Self: Sized,
fn from_slice(slice: &mut &[u8]) -> Result<Self>where
Self: Sized,
this is safe, but not check collections capacity!
recommend use only for safe data (example: from DB), not external data.
Source§fn check_bytes(slice: &mut &[u8]) -> Result<()>where
Self: Sized,
fn check_bytes(slice: &mut &[u8]) -> Result<()>where
Self: Sized,
check bytes, collections len, check utf-8, NonZero, f32 and others…
Source§unsafe fn from_slice_unchecked(slice: &mut &[u8]) -> Result<Self>where
Self: Sized,
unsafe fn from_slice_unchecked(slice: &mut &[u8]) -> Result<Self>where
Self: Sized,
Safety Read more
Source§unsafe fn from_slice_unsafe(slice: &mut &[u8]) -> Result<Self>where
Self: Sized,
unsafe fn from_slice_unsafe(slice: &mut &[u8]) -> Result<Self>where
Self: Sized,
Safety Read more
fn try_convert_to_bytes( &self, slice: &mut [u8], cursor: &mut usize, ) -> Result<()>
fn convert_to_bytes(&self, slice: &mut [u8], cursor: &mut usize)
fn debug_from_slice(slice: &mut &[u8]) -> Result<Self, RapiraError>
Auto Trait Implementations§
impl<K, V> Freeze for ChangeEvent<K, V>
impl<K, V> RefUnwindSafe for ChangeEvent<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for ChangeEvent<K, V>
impl<K, V> Sync for ChangeEvent<K, V>
impl<K, V> Unpin for ChangeEvent<K, V>
impl<K, V> UnwindSafe for ChangeEvent<K, V>where
K: UnwindSafe,
V: 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> 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