pub struct Ctx {
pub work_dir: PathBuf,
pub tempdir: Option<TempDir>,
pub client: Agent,
pub draw_target: ProgressTarget,
pub http_retry: u8,
}Fields§
§work_dir: PathBuf§tempdir: Option<TempDir>§client: Agent§draw_target: ProgressTarget§http_retry: u8Implementations§
Source§impl Ctx
impl Ctx
pub fn with_temp( dt: ProgressTarget, client: Agent, http_retry: u8, ) -> Result<Self, Error>
pub fn with_dir( work_dir: PathBuf, dt: ProgressTarget, client: Agent, http_retry: u8, ) -> Result<Self, Error>
pub fn get_and_validate<P>( &self, url: impl AsRef<str>, path: &P, checksum: Option<Sha256>, progress: ProgressBar, ) -> Result<Bytes, Error>
pub fn execute( self: Arc<Self>, packages: BTreeMap<String, ManifestItem>, payloads: Vec<WorkItem>, crt_version: String, sdk_version: String, vcrd_version: Option<String>, arches: u32, variants: u32, ops: Ops, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ctx
impl !RefUnwindSafe for Ctx
impl Send for Ctx
impl Sync for Ctx
impl Unpin for Ctx
impl !UnwindSafe for Ctx
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> 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