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 for CompressedData
impl PartialEq 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 ==
.source§impl Serialize for CompressedData
impl Serialize for CompressedData
source§impl TryFrom<Packet> for CompressedData
impl TryFrom<Packet> for CompressedData
impl Eq for CompressedData
impl StructuralPartialEq for CompressedData
Auto Trait Implementations§
impl Freeze for CompressedData
impl RefUnwindSafe for CompressedData
impl Send for CompressedData
impl Sync for CompressedData
impl Unpin for CompressedData
impl UnwindSafe for CompressedData
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