pub(crate) struct Tarball<'a> {Show 13 fields
builder: &'a Builder<'a>,
pkgname: String,
component: String,
target: Option<String>,
product_name: String,
overlay: OverlayKind,
temp_dir: PathBuf,
image_dir: PathBuf,
overlay_dir: PathBuf,
bulk_dirs: Vec<PathBuf>,
include_target_in_component_name: bool,
is_preview: bool,
permit_symlinks: bool,
}
Fields§
§builder: &'a Builder<'a>
§pkgname: String
§component: String
§target: Option<String>
§product_name: String
§overlay: OverlayKind
§temp_dir: PathBuf
§image_dir: PathBuf
§overlay_dir: PathBuf
§bulk_dirs: Vec<PathBuf>
§include_target_in_component_name: bool
§is_preview: bool
§permit_symlinks: bool
Implementations§
Source§impl<'a> Tarball<'a>
impl<'a> Tarball<'a>
pub(crate) fn new( builder: &'a Builder<'a>, component: &str, target: &str, ) -> Self
pub(crate) fn new_targetless(builder: &'a Builder<'a>, component: &str) -> Self
fn new_inner( builder: &'a Builder<'a>, component: &str, target: Option<String>, ) -> Self
pub(crate) fn set_overlay(&mut self, overlay: OverlayKind)
pub(crate) fn set_product_name(&mut self, name: &str)
pub(crate) fn include_target_in_component_name(&mut self, include: bool)
pub(crate) fn is_preview(&mut self, is: bool)
pub(crate) fn permit_symlinks(&mut self, flag: bool)
pub(crate) fn image_dir(&self) -> &Path
pub(crate) fn add_file( &self, src: impl AsRef<Path>, destdir: impl AsRef<Path>, perms: u32, )
pub(crate) fn add_renamed_file( &self, src: impl AsRef<Path>, destdir: impl AsRef<Path>, new_name: &str, )
pub(crate) fn add_legal_and_readme_to(&self, destdir: impl AsRef<Path>)
pub(crate) fn add_dir(&self, src: impl AsRef<Path>, dest: impl AsRef<Path>)
pub(crate) fn add_bulk_dir( &mut self, src: impl AsRef<Path>, dest: impl AsRef<Path>, )
pub(crate) fn generate(self) -> GeneratedTarball
pub(crate) fn combine(self, tarballs: &[GeneratedTarball]) -> GeneratedTarball
pub(crate) fn bare(self) -> GeneratedTarball
fn package_name(&self) -> String
fn non_bare_args(&self, cmd: &mut BootstrapCommand)
fn run( self, build_cli: impl FnOnce(&Tarball<'a>, &mut BootstrapCommand), ) -> GeneratedTarball
Auto Trait Implementations§
impl<'a> Freeze for Tarball<'a>
impl<'a> !RefUnwindSafe for Tarball<'a>
impl<'a> !Send for Tarball<'a>
impl<'a> !Sync for Tarball<'a>
impl<'a> Unpin for Tarball<'a>
impl<'a> !UnwindSafe for Tarball<'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
§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 208 bytes