pub struct EncoderBuilder { /* private fields */ }Expand description
Chainable builder for Encoder. Defaults match Encoder::new.
Implementations§
Source§impl EncoderBuilder
impl EncoderBuilder
Sourcepub fn protocol_version(self, v: u8) -> Self
pub fn protocol_version(self, v: u8) -> Self
Set the protocol version byte written at offset 1 of each segment header.
Sourcepub fn profile_version(self, v: u16) -> Self
pub fn profile_version(self, v: u16) -> Self
Set the profile version word written at offsets 2..4 of each segment header.
Trait Implementations§
Source§impl Clone for EncoderBuilder
impl Clone for EncoderBuilder
Source§fn clone(&self) -> EncoderBuilder
fn clone(&self) -> EncoderBuilder
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 EncoderBuilder
impl Debug for EncoderBuilder
Auto Trait Implementations§
impl Freeze for EncoderBuilder
impl RefUnwindSafe for EncoderBuilder
impl Send for EncoderBuilder
impl Sync for EncoderBuilder
impl Unpin for EncoderBuilder
impl UnsafeUnpin for EncoderBuilder
impl UnwindSafe for EncoderBuilder
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