pub struct DownloadOpts {
pub variant: Variant,
pub custom_path: Option<PathBuf>,
pub activate: bool,
pub dry_run: bool,
pub force_linux: bool,
}Fields§
§variant: Variant§custom_path: Option<PathBuf>§activate: bool§dry_run: bool§force_linux: boolForce the Linux x86_64 build regardless of host OS. Set when the
libtorch will be consumed inside a Linux Docker container rather
than linked against host cargo — without this, macOS hosts pick
libtorch-macos-arm64-*.zip (Mach-O dylibs) which then fail to
load inside the Linux container that bind-mounts the directory.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DownloadOpts
impl RefUnwindSafe for DownloadOpts
impl Send for DownloadOpts
impl Sync for DownloadOpts
impl Unpin for DownloadOpts
impl UnsafeUnpin for DownloadOpts
impl UnwindSafe for DownloadOpts
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