#[non_exhaustive]pub enum EncodeCommand<'a> {
BeginEntry(&'a EntryMetadata),
Data(&'a [u8]),
EndEntry,
Finish,
}Expand description
Input command for an archive encoder.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BeginEntry(&'a EntryMetadata)
Begins an entry.
Data(&'a [u8])
Supplies entry body bytes.
EndEntry
Ends the current entry.
Finish
Finalizes the archive.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EncodeCommand<'a>
impl<'a> RefUnwindSafe for EncodeCommand<'a>
impl<'a> Send for EncodeCommand<'a>
impl<'a> Sync for EncodeCommand<'a>
impl<'a> Unpin for EncodeCommand<'a>
impl<'a> UnsafeUnpin for EncodeCommand<'a>
impl<'a> UnwindSafe for EncodeCommand<'a>
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