pub struct PullConfig {
pub blobs_dir: PathBuf,
pub progress: bool,
pub verify_existing: bool,
}Expand description
Where blobs live, and how loud to be about it.
Fields§
§blobs_dir: PathBufContent-addressed blob directory, e.g. ~/.hearth/blobs.
progress: boolDraw curl’s progress meter. A silent twenty-minute pause is indistinguishable from a hang, and a downloader that looks hung gets killed halfway.
verify_existing: boolRe-verify a blob that is already on disk instead of trusting its name. Off by default: re-hashing 40 GiB on every start is a real cost, and the filename IS the digest. On when you have reason to distrust the disk.
Trait Implementations§
Source§impl Clone for PullConfig
impl Clone for PullConfig
Source§impl Debug for PullConfig
impl Debug for PullConfig
Auto Trait Implementations§
impl Freeze for PullConfig
impl RefUnwindSafe for PullConfig
impl Send for PullConfig
impl Sync for PullConfig
impl Unpin for PullConfig
impl UnsafeUnpin for PullConfig
impl UnwindSafe for PullConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more