pub struct ProjectionSnapshot<P> {
pub cursor: ReplayCursor,
pub projection: P,
}Fields§
§cursor: ReplayCursor§projection: PTrait Implementations§
Source§impl<P: Clone> Clone for ProjectionSnapshot<P>
impl<P: Clone> Clone for ProjectionSnapshot<P>
Source§fn clone(&self) -> ProjectionSnapshot<P>
fn clone(&self) -> ProjectionSnapshot<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Codec<ProjectionSnapshot<MemoryProjection>> for CompactSnapshotCodec
impl Codec<ProjectionSnapshot<MemoryProjection>> for CompactSnapshotCodec
Source§fn encode(
&self,
value: &ProjectionSnapshot<MemoryProjection>,
) -> Result<Vec<u8>>
fn encode( &self, value: &ProjectionSnapshot<MemoryProjection>, ) -> Result<Vec<u8>>
Encodes one value. Read more
Source§fn decode(&self, bytes: &[u8]) -> Result<ProjectionSnapshot<MemoryProjection>>
fn decode(&self, bytes: &[u8]) -> Result<ProjectionSnapshot<MemoryProjection>>
Decodes one complete value. Read more
Source§impl<P: Debug> Debug for ProjectionSnapshot<P>
impl<P: Debug> Debug for ProjectionSnapshot<P>
Source§impl<'de, P> Deserialize<'de> for ProjectionSnapshot<P>where
P: Deserialize<'de>,
impl<'de, P> Deserialize<'de> for ProjectionSnapshot<P>where
P: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<P: Eq> Eq for ProjectionSnapshot<P>
Source§impl<P: PartialEq> PartialEq for ProjectionSnapshot<P>
impl<P: PartialEq> PartialEq for ProjectionSnapshot<P>
Source§impl<P> Serialize for ProjectionSnapshot<P>where
P: Serialize,
impl<P> Serialize for ProjectionSnapshot<P>where
P: Serialize,
impl<P: PartialEq> StructuralPartialEq for ProjectionSnapshot<P>
Auto Trait Implementations§
impl<P> Freeze for ProjectionSnapshot<P>where
P: Freeze,
impl<P> RefUnwindSafe for ProjectionSnapshot<P>where
P: RefUnwindSafe,
impl<P> Send for ProjectionSnapshot<P>where
P: Send,
impl<P> Sync for ProjectionSnapshot<P>where
P: Sync,
impl<P> Unpin for ProjectionSnapshot<P>where
P: Unpin,
impl<P> UnsafeUnpin for ProjectionSnapshot<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for ProjectionSnapshot<P>where
P: 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