Struct pgp::packet::CompressedData
source · [−]pub struct CompressedData { /* private fields */ }
Implementations
sourceimpl 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]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [u8]
Trait Implementations
sourceimpl Clone for CompressedData
impl Clone for CompressedData
sourcefn clone(&self) -> CompressedData
fn clone(&self) -> CompressedData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CompressedData
impl Debug for CompressedData
sourceimpl From<CompressedData> for Packet
impl From<CompressedData> for Packet
sourcefn from(other: CompressedData) -> Packet
fn from(other: CompressedData) -> Packet
Converts to this type from the input type.
sourceimpl PacketTrait for CompressedData
impl PacketTrait for CompressedData
sourceimpl PartialEq<CompressedData> for CompressedData
impl PartialEq<CompressedData> for CompressedData
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &CompressedData) -> bool
fn ne(&self, other: &CompressedData) -> bool
This method tests for !=
.
sourceimpl Serialize for CompressedData
impl Serialize for CompressedData
sourceimpl TryFrom<Packet> for CompressedData
impl TryFrom<Packet> for CompressedData
impl Eq for CompressedData
impl StructuralEq for CompressedData
impl StructuralPartialEq for CompressedData
Auto Trait Implementations
impl RefUnwindSafe for CompressedData
impl Send for CompressedData
impl Sync for CompressedData
impl Unpin for CompressedData
impl UnwindSafe for CompressedData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more