pub struct DecodeOptions {
pub verify_hash: bool,
pub native_byte_order: bool,
pub compression_backend: CompressionBackend,
pub threads: u32,
pub parallel_threshold_bytes: Option<usize>,
}Expand description
Options for decoding.
Fields§
§verify_hash: boolWhether to verify payload hashes during decode.
native_byte_order: boolWhen true (the default), decoded payloads are converted to the caller’s native byte order regardless of the wire byte order declared in the descriptor. Set to false to receive bytes in the message’s declared wire byte order (rare — useful for zero-copy forwarding).
compression_backend: CompressionBackendWhich backend to use for szip / zstd when both FFI and pure-Rust implementations are compiled in.
threads: u32Thread budget for the multi-threaded decoding pipeline.
Semantics match
EncodeOptions.threads:
0 means sequential (may be overridden by TENSOGRAM_THREADS),
1 means explicit single-threaded execution, N ≥ 2 builds a
scoped pool. Output bytes are byte-identical to the
sequential path regardless of N.
parallel_threshold_bytes: Option<usize>Minimum total payload bytes below which the parallel path is
skipped. See
EncodeOptions.parallel_threshold_bytes.
Trait Implementations§
Source§impl Clone for DecodeOptions
impl Clone for DecodeOptions
Source§fn clone(&self) -> DecodeOptions
fn clone(&self) -> DecodeOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DecodeOptions
impl Debug for DecodeOptions
Source§impl Default for DecodeOptions
impl Default for DecodeOptions
Source§fn default() -> DecodeOptions
fn default() -> DecodeOptions
Auto Trait Implementations§
impl Freeze for DecodeOptions
impl RefUnwindSafe for DecodeOptions
impl Send for DecodeOptions
impl Sync for DecodeOptions
impl Unpin for DecodeOptions
impl UnsafeUnpin for DecodeOptions
impl UnwindSafe for DecodeOptions
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
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>
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>
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