Enum gelf::MessageCompression
[−]
[src]
pub enum MessageCompression { None, Gzip, Zlib, }
MessageCompression represents all possible compression algorithms in GELF.
Variants
None
Gzip
Zlib
Methods
impl MessageCompression
[src]
fn default() -> MessageCompression
Return the default compression algorithm.
fn compress(&self, message: &WireMessage) -> Result<Vec<u8>>
Compress a serialized message with the defined algorithm.
Trait Implementations
impl PartialEq for MessageCompression
[src]
fn eq(&self, __arg_0: &MessageCompression) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Clone for MessageCompression
[src]
fn clone(&self) -> MessageCompression
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more