pub struct RemoteImageService;Expand description
Service for detecting and managing remote images
Implementations§
Source§impl RemoteImageService
impl RemoteImageService
Sourcepub async fn detect_prebuilt(
&self,
targets: &TargetsConfig,
project_dir: &Path,
) -> Result<PrebuiltDetectionResult>
pub async fn detect_prebuilt( &self, targets: &TargetsConfig, project_dir: &Path, ) -> Result<PrebuiltDetectionResult>
Detect whether a pre-built image can be used
Returns information about whether to use pre-built or build locally.
Sourcepub async fn fetch_manifest(&self) -> Result<RemoteImageManifest>
pub async fn fetch_manifest(&self) -> Result<RemoteImageManifest>
Fetch the remote image manifest from user-tools
Sourcepub fn hash_nodes(&self, targets: &TargetsConfig) -> String
pub fn hash_nodes(&self, targets: &TargetsConfig) -> String
Compute a hash of the remote nodes for matching against manifest
Sourcepub fn image_env_var() -> &'static str
pub fn image_env_var() -> &'static str
Get the image environment variable name
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RemoteImageService
impl RefUnwindSafe for RemoteImageService
impl Send for RemoteImageService
impl Sync for RemoteImageService
impl Unpin for RemoteImageService
impl UnwindSafe for RemoteImageService
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