pub enum CodecReceipt {
ExactFallback(ExactFallbackReceipt),
Degradation(DegradationReceipt),
Direct {
timestamp: DateTime<Utc>,
profile: CodecProfile,
},
}Expand description
Receipt variants for codec decisions.
Variants§
ExactFallback(ExactFallbackReceipt)
Exact fallback receipt when degrading from compressed to raw
Degradation(DegradationReceipt)
Degradation receipt when moving between non-raw profiles
Direct
Direct encoding without fallback
Trait Implementations§
Source§impl Clone for CodecReceipt
impl Clone for CodecReceipt
Source§fn clone(&self) -> CodecReceipt
fn clone(&self) -> CodecReceipt
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 Debug for CodecReceipt
impl Debug for CodecReceipt
Source§impl<'de> Deserialize<'de> for CodecReceipt
impl<'de> Deserialize<'de> for CodecReceipt
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
Auto Trait Implementations§
impl Freeze for CodecReceipt
impl RefUnwindSafe for CodecReceipt
impl Send for CodecReceipt
impl Sync for CodecReceipt
impl Unpin for CodecReceipt
impl UnsafeUnpin for CodecReceipt
impl UnwindSafe for CodecReceipt
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