pub struct ReceiverConfig {
pub auth_key: Option<[u8; 32]>,
pub decode_proof_policy: DecodeProofEmissionPolicy,
pub max_inflight_decoders: usize,
pub max_buffered_symbol_bytes: usize,
}Expand description
Receiver policy knobs for packet integrity/auth enforcement.
Fields§
§auth_key: Option<[u8; 32]>Optional auth key for validating packet auth tags.
decode_proof_policy: DecodeProofEmissionPolicyDecode proof emission hooks.
max_inflight_decoders: usizeMaximum number of concurrent in-flight changeset decoders.
max_buffered_symbol_bytes: usizeMaximum total bytes buffered across all decoder symbol maps.
Implementations§
Source§impl ReceiverConfig
impl ReceiverConfig
Sourcepub const fn with_auth_key(auth_key: [u8; 32]) -> Self
pub const fn with_auth_key(auth_key: [u8; 32]) -> Self
Build a receiver config with authenticated transport enabled.
Trait Implementations§
Source§impl Clone for ReceiverConfig
impl Clone for ReceiverConfig
Source§fn clone(&self) -> ReceiverConfig
fn clone(&self) -> ReceiverConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ReceiverConfig
impl Debug for ReceiverConfig
Auto Trait Implementations§
impl Freeze for ReceiverConfig
impl RefUnwindSafe for ReceiverConfig
impl Send for ReceiverConfig
impl Sync for ReceiverConfig
impl Unpin for ReceiverConfig
impl UnsafeUnpin for ReceiverConfig
impl UnwindSafe for ReceiverConfig
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
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).