[][src]Struct sequoia_openpgp::serialize::writer::CompressionLevel

pub struct CompressionLevel(_);

Compression level.

This value is used by the encoders to tune their compression strategy. The level is restricted to levels commonly used by compression libraries, 0 to 9, where 0 means no compression, 1 means fastest compression, 6 being a good default, and meaning 9 best compression.

Methods

impl CompressionLevel[src]

pub fn new(level: u8) -> Result<CompressionLevel>[src]

Creates a new compression level.

level must be in range 0..10, where 0 means no compression, 1 means fastest compression, 6 being a good default, and meaning 9 best compression.

pub fn none() -> CompressionLevel[src]

No compression.

pub fn fastest() -> CompressionLevel[src]

Fastest compression.

pub fn best() -> CompressionLevel[src]

Best compression.

Trait Implementations

impl Clone for CompressionLevel[src]

impl Copy for CompressionLevel[src]

impl Debug for CompressionLevel[src]

impl Default for CompressionLevel[src]

impl Eq for CompressionLevel[src]

impl From<CompressionLevel> for Compression[src]

impl From<CompressionLevel> for Compression[src]

impl Hash for CompressionLevel[src]

impl Ord for CompressionLevel[src]

impl PartialEq<CompressionLevel> for CompressionLevel[src]

impl PartialOrd<CompressionLevel> for CompressionLevel[src]

impl StructuralEq for CompressionLevel[src]

impl StructuralPartialEq for CompressionLevel[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,