pub struct RepoCheckoutAtOptions {
Show 15 fields pub mode: RepoCheckoutMode, pub overwrite_mode: RepoCheckoutOverwriteMode, pub enable_uncompressed_cache: bool, pub enable_fsync: bool, pub process_whiteouts: bool, pub no_copy_fallback: bool, pub force_copy: bool, pub bareuseronly_dirs: bool, pub force_copy_zerosized: bool, pub process_passthrough_whiteouts: bool, pub subpath: Option<PathBuf>, pub devino_to_csum_cache: Option<RepoDevInoCache>, pub filter: Option<RepoCheckoutFilter>, pub sepolicy: Option<SePolicy>, pub sepolicy_prefix: Option<String>,
}
Expand description

Options for checking out an OSTree commit.

Fields§

§mode: RepoCheckoutMode

Checkout mode.

§overwrite_mode: RepoCheckoutOverwriteMode

Overwrite mode.

§enable_uncompressed_cache: bool

Deprecated, do not use.

§enable_fsync: bool

Perform fsync() on checked out files and directories.

§process_whiteouts: bool

Handle OCI/Docker style whiteout files.

§no_copy_fallback: bool

Require hardlinking.

§force_copy: bool

Never hardlink; reflink if possible, otherwise full physical copy.

§bareuseronly_dirs: bool

Suppress mode bits outside of 0775 for directories.

§force_copy_zerosized: bool

Copy zero-sized files rather than hardlinking.

§process_passthrough_whiteouts: bool

Enable overlayfs whiteout extraction into char 0:0 devices.

§subpath: Option<PathBuf>

Only check out this subpath.

§devino_to_csum_cache: Option<RepoDevInoCache>

A cache from device, inode pairs to checksums.

§filter: Option<RepoCheckoutFilter>

A callback function to decide which files and directories will be checked out from the repo. See the documentation on RepoCheckoutFilter for more information on the signature.

Panics

This callback may not panic. If it does, abort() will be called to avoid unwinding across an FFI boundary and into the libostree C code (which is Undefined Behavior). If you prefer to swallow the panic rather than aborting, you can use std::panic::catch_unwind inside your callback to catch and silence any panics that occur.

§sepolicy: Option<SePolicy>

SELinux policy.

§sepolicy_prefix: Option<String>

When computing security contexts, prefix the path with this value.

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.