pub enum NsisCompression {
Zlib,
Bzip2,
Lzma,
None,
}
Expand description
Compression algorithms used in the NSIS installer.
Variants§
Zlib
ZLIB uses the deflate algorithm, it is a quick and simple method. With the default compression level it uses about 300 KB of memory.
Bzip2
BZIP2 usually gives better compression ratios than ZLIB, but it is a bit slower and uses more memory. With the default compression level it uses about 4 MB of memory.
Lzma
LZMA (default) is a new compression method that gives very good compression ratios. The decompression speed is high (10-20 MB/s on a 2 GHz CPU), the compression speed is lower. The memory size that will be used for decompression is the dictionary size plus a few KBs, the default is 8 MB.
None
Disable compression
Trait Implementations§
Source§impl Clone for NsisCompression
impl Clone for NsisCompression
Source§fn clone(&self) -> NsisCompression
fn clone(&self) -> NsisCompression
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 NsisCompression
impl Debug for NsisCompression
Source§impl Default for NsisCompression
impl Default for NsisCompression
Source§impl<'de> Deserialize<'de> for NsisCompression
impl<'de> Deserialize<'de> for NsisCompression
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NsisCompression
impl PartialEq for NsisCompression
Source§impl Serialize for NsisCompression
impl Serialize for NsisCompression
impl Copy for NsisCompression
impl Eq for NsisCompression
impl StructuralPartialEq for NsisCompression
Auto Trait Implementations§
impl Freeze for NsisCompression
impl RefUnwindSafe for NsisCompression
impl Send for NsisCompression
impl Sync for NsisCompression
impl Unpin for NsisCompression
impl UnwindSafe for NsisCompression
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.