pub struct PartialCompression {
pub pointer: PartialPointer,
}Expand description
A unprocessed compression object.
Fields§
§pointer: PartialPointerImplementations§
Source§impl PartialCompression
impl PartialCompression
Sourcepub fn bytes<R: Read + Seek>(
&mut self,
reader: &mut PartialReader<R>,
) -> TychoResult<Vec<u8>>
pub fn bytes<R: Read + Seek>( &mut self, reader: &mut PartialReader<R>, ) -> TychoResult<Vec<u8>>
Get the bytes within the compression object.
Sourcepub fn element<R: Read + Seek>(
&mut self,
reader: &mut PartialReader<R>,
) -> TychoResult<PartialElement>
pub fn element<R: Read + Seek>( &mut self, reader: &mut PartialReader<R>, ) -> TychoResult<PartialElement>
Get the element within the compression object.
(requires compression feature)
Trait Implementations§
Source§impl Clone for PartialCompression
impl Clone for PartialCompression
Source§fn clone(&self) -> PartialCompression
fn clone(&self) -> PartialCompression
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 PartialCompression
impl Debug for PartialCompression
Source§impl PartialCompressionAsync for PartialCompression
impl PartialCompressionAsync for PartialCompression
Source§fn bytes_async<'life0, 'life1, 'async_trait, R>(
&'life0 self,
reader: &'life1 mut PartialReader<R>,
) -> Pin<Box<dyn Future<Output = TychoResult<Vec<u8>>> + Send + 'async_trait>>
fn bytes_async<'life0, 'life1, 'async_trait, R>( &'life0 self, reader: &'life1 mut PartialReader<R>, ) -> Pin<Box<dyn Future<Output = TychoResult<Vec<u8>>> + Send + 'async_trait>>
Get the bytes within the compression object asynchronously.
(requires async_tokio feature)
Source§fn element_async<'life0, 'life1, 'async_trait, R>(
&'life0 self,
reader: &'life1 mut PartialReader<R>,
) -> Pin<Box<dyn Future<Output = TychoResult<PartialElement>> + Send + 'async_trait>>
fn element_async<'life0, 'life1, 'async_trait, R>( &'life0 self, reader: &'life1 mut PartialReader<R>, ) -> Pin<Box<dyn Future<Output = TychoResult<PartialElement>> + Send + 'async_trait>>
Get the element within the compression object asynchronously.
(requires compression feature and async_tokio feature)
Auto Trait Implementations§
impl Freeze for PartialCompression
impl RefUnwindSafe for PartialCompression
impl Send for PartialCompression
impl Sync for PartialCompression
impl Unpin for PartialCompression
impl UnwindSafe for PartialCompression
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