pub struct NoCompressor;
Expand description
An implementation of Compressor
that does nothing. This is useful if
you want to disable compression.
Trait Implementations§
Source§impl Clone for NoCompressor
impl Clone for NoCompressor
Source§fn clone(&self) -> NoCompressor
fn clone(&self) -> NoCompressor
Returns a duplicate 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 Compressor for NoCompressor
impl Compressor for NoCompressor
Source§fn compress(&self, bytes: Packet) -> Result<Packet, Error>
fn compress(&self, bytes: Packet) -> Result<Packet, Error>
Consume a packet, returning a (possibly) modified packet with the
packet value compressed. This should set the appropriate packet
flags on the extras field.
Source§fn decompress(&self, bytes: Packet) -> Result<Packet, Error>
fn decompress(&self, bytes: Packet) -> Result<Packet, Error>
Consume a packet, returning a (possibly) modified packet with the
packet value decompressed. This should unset the appropriate packet
flags on the extras field.
Source§impl Debug for NoCompressor
impl Debug for NoCompressor
impl Copy for NoCompressor
Auto Trait Implementations§
impl Freeze for NoCompressor
impl RefUnwindSafe for NoCompressor
impl Send for NoCompressor
impl Sync for NoCompressor
impl Unpin for NoCompressor
impl UnwindSafe for NoCompressor
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