pub enum PassthroughDecision<'a> {
Copy {
bytes: &'a [u8],
},
Transcode {
reason: PassthroughRejectReason,
},
}Expand description
Result of a passthrough eligibility check.
Variants§
Copy
Copy these compressed bytes unchanged.
Transcode
Decode/transcode instead, for the stated reason.
Fields
§
reason: PassthroughRejectReasonReason byte-preserving passthrough was rejected.
Trait Implementations§
Source§impl<'a> Clone for PassthroughDecision<'a>
impl<'a> Clone for PassthroughDecision<'a>
Source§fn clone(&self) -> PassthroughDecision<'a>
fn clone(&self) -> PassthroughDecision<'a>
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 moreimpl<'a> Copy for PassthroughDecision<'a>
Source§impl<'a> Debug for PassthroughDecision<'a>
impl<'a> Debug for PassthroughDecision<'a>
impl<'a> Eq for PassthroughDecision<'a>
Source§impl<'a> PartialEq for PassthroughDecision<'a>
impl<'a> PartialEq for PassthroughDecision<'a>
impl<'a> StructuralPartialEq for PassthroughDecision<'a>
Auto Trait Implementations§
impl<'a> Freeze for PassthroughDecision<'a>
impl<'a> RefUnwindSafe for PassthroughDecision<'a>
impl<'a> Send for PassthroughDecision<'a>
impl<'a> Sync for PassthroughDecision<'a>
impl<'a> Unpin for PassthroughDecision<'a>
impl<'a> UnsafeUnpin for PassthroughDecision<'a>
impl<'a> UnwindSafe for PassthroughDecision<'a>
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