pub enum TrailingDataPolicy {
Strict,
BlockingFactor(u8),
Ignore,
}Expand description
Controls what the reader accepts after the two-block end-of-archive marker.
The default is BlockingFactor(20), a 10,240-byte record.
Variants§
Strict
Require EOF immediately after the marker.
BlockingFactor(u8)
Permit whole 512-byte zero blocks up to the end of the current record.
The blocking factor is the number of blocks per record, measured from the start of the archive. EOF may occur immediately after the marker or after any allowed padding block. If the marker ends on a record boundary, or the factor is 0 or 1, EOF must immediately follow the marker.
Ignore
Stop at the marker and leave all following bytes unread.
Trait Implementations§
Source§impl Clone for TrailingDataPolicy
impl Clone for TrailingDataPolicy
Source§fn clone(&self) -> TrailingDataPolicy
fn clone(&self) -> TrailingDataPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TrailingDataPolicy
Source§impl Debug for TrailingDataPolicy
impl Debug for TrailingDataPolicy
Source§impl Default for TrailingDataPolicy
impl Default for TrailingDataPolicy
Source§fn default() -> TrailingDataPolicy
fn default() -> TrailingDataPolicy
Returns the “default value” for a type. Read more
impl Eq for TrailingDataPolicy
Source§impl PartialEq for TrailingDataPolicy
impl PartialEq for TrailingDataPolicy
impl StructuralPartialEq for TrailingDataPolicy
Auto Trait Implementations§
impl Forget for TrailingDataPolicy
impl Freeze for TrailingDataPolicy
impl Move for TrailingDataPolicy
impl RefUnwindSafe for TrailingDataPolicy
impl Send for TrailingDataPolicy
impl Sync for TrailingDataPolicy
impl Unpin for TrailingDataPolicy
impl UnsafeUnpin for TrailingDataPolicy
impl UnwindSafe for TrailingDataPolicy
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