Struct buffered_reader::Bzip [−][src]
Decompresses the underlying BufferedReader using the bzip2
algorithm.
Implementations
impl<R: BufferedReader<()>> Bzip<R, ()>[src]
pub fn new(reader: R) -> Self[src]
Instantiates a new bzip decompression reader.
reader is the source to wrap.
impl<R: BufferedReader<C>, C: Debug + Sync + Send> Bzip<R, C>[src]
pub fn with_cookie(reader: R, cookie: C) -> Self[src]
Like new(), but uses a cookie.
The cookie can be retrieved using the cookie_ref and
cookie_mut methods, and set using the cookie_set method.
Trait Implementations
impl<R: BufferedReader<C>, C: Debug + Send + Sync> BufferedReader<C> for Bzip<R, C>[src]
fn buffer(&self) -> &[u8][src]
fn data(&mut self, amount: usize) -> Result<&[u8], Error>[src]
fn data_hard(&mut self, amount: usize) -> Result<&[u8], Error>[src]
fn data_eof(&mut self) -> Result<&[u8], Error>[src]
fn consume(&mut self, amount: usize) -> &[u8][src]
fn data_consume(&mut self, amount: usize) -> Result<&[u8], Error>[src]
fn data_consume_hard(&mut self, amount: usize) -> Result<&[u8], Error>[src]
fn read_be_u16(&mut self) -> Result<u16, Error>[src]
fn read_be_u32(&mut self) -> Result<u32, Error>[src]
fn steal(&mut self, amount: usize) -> Result<Vec<u8>, Error>[src]
fn steal_eof(&mut self) -> Result<Vec<u8>, Error>[src]
fn get_mut(&mut self) -> Option<&mut dyn BufferedReader<C>>[src]
fn get_ref(&self) -> Option<&dyn BufferedReader<C>>[src]
fn into_inner<'b>(self: Box<Self>) -> Option<Box<dyn BufferedReader<C> + 'b>> where
Self: 'b, [src]
Self: 'b,
fn cookie_set(&mut self, cookie: C) -> C[src]
fn cookie_ref(&self) -> &C[src]
fn cookie_mut(&mut self) -> &mut C[src]
fn eof(&mut self) -> bool[src]
fn consummated(&mut self) -> bool[src]
fn read_to(&mut self, terminal: u8) -> Result<&[u8], Error>[src]
fn drop_until(&mut self, terminals: &[u8]) -> Result<usize, Error>[src]
fn drop_through(
&mut self,
terminals: &[u8],
match_eof: bool
) -> Result<(Option<u8>, usize), Error>[src]
&mut self,
terminals: &[u8],
match_eof: bool
) -> Result<(Option<u8>, usize), Error>
fn drop_eof(&mut self) -> Result<bool, Error>[src]
fn dump(&self, sink: &mut dyn Write) -> Result<()> where
Self: Sized, [src]
Self: Sized,
fn as_boxed<'a>(self) -> Box<dyn BufferedReader<C> + 'a> where
Self: 'a + Sized, [src]
Self: 'a + Sized,
impl<R: Debug + BufferedReader<C>, C: Debug + Sync + Send> Debug for Bzip<R, C>[src]
impl<R: BufferedReader<C>, C: Debug + Sync + Send> Display for Bzip<R, C>[src]
impl<R: BufferedReader<C>, C: Debug + Sync + Send> Read for Bzip<R, C>[src]
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>[src]
pub fn read_vectored(
&mut self,
bufs: &mut [IoSliceMut<'_>]
) -> Result<usize, Error>1.36.0[src]
&mut self,
bufs: &mut [IoSliceMut<'_>]
) -> Result<usize, Error>
pub fn is_read_vectored(&self) -> bool[src]
pub unsafe fn initializer(&self) -> Initializer[src]
pub fn read_to_end(&mut self, buf: &mut Vec<u8, Global>) -> Result<usize, Error>1.0.0[src]
pub fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>1.0.0[src]
pub fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>1.6.0[src]
pub fn by_ref(&mut self) -> &mut Self1.0.0[src]
pub fn bytes(self) -> Bytes<Self>1.0.0[src]
pub fn chain<R>(self, next: R) -> Chain<Self, R> where
R: Read, 1.0.0[src]
R: Read,
pub fn take(self, limit: u64) -> Take<Self>1.0.0[src]
Auto Trait Implementations
impl<R, C> !RefUnwindSafe for Bzip<R, C>
impl<R, C> Send for Bzip<R, C>
impl<R, C> Sync for Bzip<R, C>
impl<R, C> Unpin for Bzip<R, C> where
C: Unpin,
R: Unpin,
C: Unpin,
R: Unpin,
impl<R, C> !UnwindSafe for Bzip<R, C>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,