Enum pretty_good::CompressedDataPacket
[−]
[src]
pub enum CompressedDataPacket { Uncompressed(Vec<u8>), Zip(Vec<u8>), Zlib(Vec<u8>), Bzip2(Vec<u8>), }
Variants
Uncompressed(Vec<u8>)
Zip(Vec<u8>)
Zlib(Vec<u8>)
Bzip2(Vec<u8>)
Methods
impl CompressedDataPacket
[src]
pub fn from_bytes(data: &[u8]) -> Result<CompressedDataPacket, Error>
[src]
pub fn to_bytes(&self) -> Result<Vec<u8>, Error>
[src]
Trait Implementations
impl Clone for CompressedDataPacket
[src]
fn clone(&self) -> CompressedDataPacket
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more