Struct pgp::packet::CompressedData
source · pub struct CompressedData { /* private fields */ }
Implementations§
source§impl CompressedData
impl CompressedData
sourcepub fn from_slice(packet_version: Version, input: &[u8]) -> Result<Self>
pub fn from_slice(packet_version: Version, input: &[u8]) -> Result<Self>
Parses a CompressedData
packet from the given slice.
pub fn from_compressed(alg: CompressionAlgorithm, data: Vec<u8>) -> Self
pub fn decompress(&self) -> Result<Decompressor<&[u8]>>
pub fn compressed_data(&self) -> &[u8] ⓘ
Trait Implementations§
source§impl Clone for CompressedData
impl Clone for CompressedData
source§fn clone(&self) -> CompressedData
fn clone(&self) -> CompressedData
Returns a copy 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 CompressedData
impl Debug for CompressedData
source§impl From<CompressedData> for Packet
impl From<CompressedData> for Packet
source§fn from(other: CompressedData) -> Packet
fn from(other: CompressedData) -> Packet
Converts to this type from the input type.
source§impl PacketTrait for CompressedData
impl PacketTrait for CompressedData
source§impl PartialEq<CompressedData> for CompressedData
impl PartialEq<CompressedData> for CompressedData
source§fn eq(&self, other: &CompressedData) -> bool
fn eq(&self, other: &CompressedData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.