pub struct LengthEncoderConfig {
pub packing: PackingMode,
}Expand description
Configuration used for encoding value lengths (in header extensions).
Fields§
§packing: PackingModePacking mode for encoding.
Implementations§
Source§impl LengthEncoderConfig
impl LengthEncoderConfig
Sourcepub fn with_packing(self, packing: PackingMode) -> Self
pub fn with_packing(self, packing: PackingMode) -> Self
Sets packing-modes to packing, returning self.
Trait Implementations§
Source§impl Clone for LengthEncoderConfig
impl Clone for LengthEncoderConfig
Source§fn clone(&self) -> LengthEncoderConfig
fn clone(&self) -> LengthEncoderConfig
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 LengthEncoderConfig
impl Debug for LengthEncoderConfig
Source§impl Default for LengthEncoderConfig
impl Default for LengthEncoderConfig
Source§fn default() -> LengthEncoderConfig
fn default() -> LengthEncoderConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for LengthEncoderConfig
impl PartialEq for LengthEncoderConfig
impl StructuralPartialEq for LengthEncoderConfig
Auto Trait Implementations§
impl Freeze for LengthEncoderConfig
impl RefUnwindSafe for LengthEncoderConfig
impl Send for LengthEncoderConfig
impl Sync for LengthEncoderConfig
impl Unpin for LengthEncoderConfig
impl UnwindSafe for LengthEncoderConfig
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