pub struct UnpackOptions {
pub threads: usize,
pub parallel_gzip: bool,
pub same_owner: bool,
pub layout: Layout,
pub devices: Devices,
}Expand description
How to unpack layers.
Fields§
§threads: usizeThreads for file writes and parallel gzip decode; 0 means all cores this process may use. 1 unpacks on the calling thread only.
parallel_gzip: boolDecode gzip layers with lgz on threads workers (false: one-core
zlib-rs).
same_owner: boolRestore the uid/gid of every entry (needs root or CAP_CHOWN).
layout: LayoutApply whiteouts onto rootfs (flatten), or keep them in overlayfs
form for a per-layer directory.
devices: DevicesWhat to do with a layer’s character and block devices (fifos are
always made). Default Devices::Skip.
Implementations§
Trait Implementations§
Source§impl Clone for UnpackOptions
impl Clone for UnpackOptions
Source§impl Debug for UnpackOptions
impl Debug for UnpackOptions
Auto Trait Implementations§
impl Forget for UnpackOptions
impl Freeze for UnpackOptions
impl Move for UnpackOptions
impl RefUnwindSafe for UnpackOptions
impl Send for UnpackOptions
impl Sync for UnpackOptions
impl Unpin for UnpackOptions
impl UnsafeUnpin for UnpackOptions
impl UnwindSafe for UnpackOptions
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