pub enum ExactStatePayload {
FullState {
bytes: CacheBytes,
},
RecurrentOnly {
recurrent: CacheBytes,
},
KvRecurrent {
kv: CacheBytes,
recurrent: CacheBytes,
},
}Variants§
Implementations§
Source§impl ExactStatePayload
impl ExactStatePayload
pub fn full_state(bytes: Vec<u8>) -> Self
pub fn recurrent_only(recurrent: Vec<u8>) -> Self
pub fn kv_recurrent(kv: Vec<u8>, recurrent: Vec<u8>) -> Self
pub fn kind(&self) -> ExactStatePayloadKind
pub fn byte_len(&self) -> u64
pub fn recurrent_state_bytes(&self) -> Result<Cow<'_, [u8]>>
pub fn recurrent_state_bytes_timed( &self, ) -> Result<(Cow<'_, [u8]>, CacheBytesReconstructStats)>
pub fn full_state_bytes_timed( &self, ) -> Result<(Cow<'_, [u8]>, CacheBytesReconstructStats)>
pub fn kv_bytes(&self) -> Result<Option<Cow<'_, [u8]>>>
pub fn kv_bytes_timed( &self, ) -> Result<Option<(Cow<'_, [u8]>, CacheBytesReconstructStats)>>
pub fn dedupe_into(self, blobs: &mut CacheBlobStore) -> (Self, CacheDedupeStats)
pub fn release_from(&self, blobs: &mut CacheBlobStore)
Trait Implementations§
Source§impl Clone for ExactStatePayload
impl Clone for ExactStatePayload
Source§fn clone(&self) -> ExactStatePayload
fn clone(&self) -> ExactStatePayload
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 moreAuto Trait Implementations§
impl Freeze for ExactStatePayload
impl RefUnwindSafe for ExactStatePayload
impl Send for ExactStatePayload
impl Sync for ExactStatePayload
impl Unpin for ExactStatePayload
impl UnsafeUnpin for ExactStatePayload
impl UnwindSafe for ExactStatePayload
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