]> git.proxmox.com Git - pxar.git/commit
lib: add type for input/output variant differentiation
authorChristian Ebner <c.ebner@proxmox.com>
Thu, 23 May 2024 06:54:58 +0000 (08:54 +0200)
committerChristian Ebner <c.ebner@proxmox.com>
Thu, 23 May 2024 09:26:23 +0000 (11:26 +0200)
commita79ae33c14dbff62e2f4eedb746e048aa4b79a07
tree56d879a249f9b8a013a441d4557ac5905d5ec1b5
parente5b98549898ca214414791cd4f0edde5563e07f8
lib: add type for input/output variant differentiation

Introduce an enum which stores 2 different possible variants of
inputs or outputs to be passed to encoder and decoder/accessor
instances, depending whether to read/write a fully self contained
pxar archive or whether to split off the payload stream into a
separate input/output.

Co-authored-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
src/lib.rs