[][src]Struct asuran::repository::ChunkSettings

pub struct ChunkSettings {
    pub compression: Compression,
    pub encryption: Encryption,
    pub hmac: HMAC,

Encapsulates the Encryption, Compression, and HMAC tags for a chunk


compression: Compressionencryption: Encryptionhmac: HMAC


impl ChunkSettings[src]

pub fn lightweight() -> ChunkSettings[src]

Returns a ChunkSettings with Encryption::NoEncryption, Compression::NoCompression, and HMAC::Blake2b.

These settings are, very nearly, the least computationally intensive that asuran supports.

Trait Implementations

impl Clone for ChunkSettings[src]

impl Copy for ChunkSettings[src]

impl Debug for ChunkSettings[src]

impl<'de> Deserialize<'de> for ChunkSettings[src]

impl Eq for ChunkSettings[src]

impl PartialEq<ChunkSettings> for ChunkSettings[src]

impl Serialize for ChunkSettings[src]

impl StructuralEq for ChunkSettings[src]

impl StructuralPartialEq for ChunkSettings[src]

Auto Trait Implementations

impl RefUnwindSafe for ChunkSettings

impl Send for ChunkSettings

impl Sync for ChunkSettings

impl Unpin for ChunkSettings

impl UnwindSafe for ChunkSettings

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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>, 

impl<T> WithSubscriber for T[src]