pub enum Checksum {
Disabled,
Length1,
Length2,
Length3,
Length4,
}Expand description
Specifies the number of checksum bytes used when encoding.
Default: Checksum::Length1.
Variants§
Disabled
No bytes used; the encoded data will not contain a checksum.
Length1
One byte used.
Length2
Two bytes used.
Length3
Three bytes used.
Length4
Four bytes used.
Trait Implementations§
Source§impl Ord for Checksum
impl Ord for Checksum
Source§impl PartialOrd for Checksum
impl PartialOrd for Checksum
impl Copy for Checksum
impl Eq for Checksum
impl StructuralPartialEq for Checksum
Auto Trait Implementations§
impl Freeze for Checksum
impl RefUnwindSafe for Checksum
impl Send for Checksum
impl Sync for Checksum
impl Unpin for Checksum
impl UnwindSafe for Checksum
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