Struct async_compression::codec::brotli::decoder::BrotliDecoder
source · pub struct BrotliDecoder {
state: Box<BrotliState<StandardAlloc, StandardAlloc, StandardAlloc>>,
}
Fields§
§state: Box<BrotliState<StandardAlloc, StandardAlloc, StandardAlloc>>
Implementations§
source§impl BrotliDecoder
impl BrotliDecoder
pub(crate) fn new() -> Self
fn decode( &mut self, input: &mut PartialBuffer<impl AsRef<[u8]>>, output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>, ) -> Result<BrotliResult>
Trait Implementations§
source§impl Debug for BrotliDecoder
impl Debug for BrotliDecoder
source§impl Decode for BrotliDecoder
impl Decode for BrotliDecoder
source§fn reinit(&mut self) -> Result<()>
fn reinit(&mut self) -> Result<()>
Reinitializes this decoder ready to decode a new member/frame of data.
source§fn decode(
&mut self,
input: &mut PartialBuffer<impl AsRef<[u8]>>,
output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>,
) -> Result<bool>
fn decode( &mut self, input: &mut PartialBuffer<impl AsRef<[u8]>>, output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>, ) -> Result<bool>
Returns whether the end of the stream has been read
Auto Trait Implementations§
impl Freeze for BrotliDecoder
impl RefUnwindSafe for BrotliDecoder
impl Send for BrotliDecoder
impl Sync for BrotliDecoder
impl Unpin for BrotliDecoder
impl UnwindSafe for BrotliDecoder
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