pub struct EncodingBlock<'a>(/* private fields */);Expand description
An encoding operation for a headers block.
This is the result of Encoder::encoding method.
Implementations§
Source§impl<'a> EncodingBlock<'a>
impl<'a> EncodingBlock<'a>
Sourcepub fn append<H>(&mut self, header: H) -> Result<&mut Self, EncoderError>where
H: TryIntoHeader,
pub fn append<H>(&mut self, header: H) -> Result<&mut Self, EncoderError>where
H: TryIntoHeader,
Appends a header to encode.
Sourcepub fn encode(self) -> Result<BuffersEncoded, EncoderError>
pub fn encode(self) -> Result<BuffersEncoded, EncoderError>
Encodes the header block.
Auto Trait Implementations§
impl<'a> Freeze for EncodingBlock<'a>
impl<'a> RefUnwindSafe for EncodingBlock<'a>
impl<'a> !Send for EncodingBlock<'a>
impl<'a> !Sync for EncodingBlock<'a>
impl<'a> Unpin for EncodingBlock<'a>
impl<'a> !UnwindSafe for EncodingBlock<'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