pub enum PrebuiltBinaryMessage {
Show 18 variants
CacheLookup {
krate: ResolvedCrate,
},
PositiveCacheHit {
krate: ResolvedCrate,
path: PathBuf,
provider: BinaryProvider,
},
NegativeCacheHit {
krate: ResolvedCrate,
},
CacheMiss {
krate: ResolvedCrate,
},
CacheInvalidatedByProviderChange {
krate: ResolvedCrate,
reason: ProviderChangeReason,
},
CacheInvalidatedByMissingBinary {
krate: ResolvedCrate,
path: PathBuf,
},
CheckingProvider {
krate: ResolvedCrate,
provider: BinaryProvider,
},
ProviderHasNoBinary {
provider: BinaryProvider,
reason: String,
},
ProviderFailed {
provider: BinaryProvider,
reason: String,
},
DownloadingBinary {
url: String,
provider: BinaryProvider,
},
VerifyingChecksum {
expected: String,
},
ChecksumVerified,
Resolved {
binary: ResolvedBinary,
},
CacheStored {
path: PathBuf,
},
NoBinaryFound {
krate: ResolvedCrate,
reasons: Vec<String>,
},
ResolutionInconclusive {
reason: String,
},
DisqualifiedDueToCustomization {
reason: String,
},
PrebuiltBinariesDisabled,
}Expand description
Messages related to prebuilt binary resolution and binary resolution cache operations.
Variants§
CacheLookup
Looking up prebuilt binary resolution in cache
Fields
krate: ResolvedCratePositiveCacheHit
A positive prebuilt binary cache hit: a previously-resolved binary was found in the cache.
NegativeCacheHit
A negative prebuilt binary cache hit: we previously determined, conclusively, that no prebuilt binary is available for this crate.
Fields
krate: ResolvedCrateCacheMiss
No cached prebuilt binary resolution found
Fields
krate: ResolvedCrateCacheInvalidatedByProviderChange
A cached prebuilt binary resolution existed but was discarded because the enabled set of binary providers changed, so the crate will be re-resolved.
CacheInvalidatedByMissingBinary
A cached positive prebuilt binary resolution existed but the binary it points to is no longer on disk, so the entry was discarded and the crate will be re-resolved.
CheckingProvider
Checking a specific binary provider for prebuilt binaries
ProviderHasNoBinary
A provider was checked but had no binary available
ProviderFailed
A provider failed before it could make a conclusive determination.
DownloadingBinary
Downloading a prebuilt binary from a provider
VerifyingChecksum
Verifying checksum of downloaded binary
ChecksumVerified
Checksum verification successful
Resolved
Successfully resolved a prebuilt binary
Fields
binary: ResolvedBinaryCacheStored
Stored resolved binary information in cache
NoBinaryFound
No prebuilt binary found from any provider
ResolutionInconclusive
Prebuilt binary resolution was inconclusive: a transient failure (such as a rate limit or network error) prevented at least one provider from providing a definitive answer, so the result is not cached and the crate falls back to building from source.
DisqualifiedDueToCustomization
Prebuilt binary cannot be used due to build customization
PrebuiltBinariesDisabled
Prebuilt binaries are disabled in config
Implementations§
Source§impl PrebuiltBinaryMessage
impl PrebuiltBinaryMessage
pub fn cache_lookup(krate: &ResolvedCrate) -> Self
pub fn positive_cache_hit( krate: &ResolvedCrate, path: &Path, provider: BinaryProvider, ) -> Self
pub fn negative_cache_hit(krate: &ResolvedCrate) -> Self
pub fn cache_miss(krate: &ResolvedCrate) -> Self
pub fn cache_invalidated_by_provider_change( krate: &ResolvedCrate, reason: ProviderChangeReason, ) -> Self
pub fn cache_invalidated_by_missing_binary( krate: &ResolvedCrate, path: &Path, ) -> Self
pub fn checking_provider( krate: &ResolvedCrate, provider: BinaryProvider, ) -> Self
pub fn provider_has_no_binary( provider: BinaryProvider, reason: impl Into<String>, ) -> Self
pub fn provider_failed( provider: BinaryProvider, reason: impl Into<String>, ) -> Self
pub fn downloading_binary( url: impl Into<String>, provider: BinaryProvider, ) -> Self
pub fn verifying_checksum(expected: impl Into<String>) -> Self
pub fn checksum_verified() -> Self
pub fn resolved(binary: &ResolvedBinary) -> Self
pub fn cache_stored(path: &Path) -> Self
pub fn no_binary_found(krate: &ResolvedCrate, reasons: Vec<String>) -> Self
pub fn resolution_inconclusive(reason: impl Into<String>) -> Self
pub fn disqualified_due_to_customization(reason: impl Into<String>) -> Self
pub fn prebuilt_binaries_disabled() -> Self
Trait Implementations§
Source§impl Clone for PrebuiltBinaryMessage
impl Clone for PrebuiltBinaryMessage
Source§fn clone(&self) -> PrebuiltBinaryMessage
fn clone(&self) -> PrebuiltBinaryMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PrebuiltBinaryMessage
impl Debug for PrebuiltBinaryMessage
Source§impl<'de> Deserialize<'de> for PrebuiltBinaryMessage
impl<'de> Deserialize<'de> for PrebuiltBinaryMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<PrebuiltBinaryMessage> for Message
impl From<PrebuiltBinaryMessage> for Message
Source§fn from(msg: PrebuiltBinaryMessage) -> Self
fn from(msg: PrebuiltBinaryMessage) -> Self
Auto Trait Implementations§
impl Freeze for PrebuiltBinaryMessage
impl RefUnwindSafe for PrebuiltBinaryMessage
impl Send for PrebuiltBinaryMessage
impl Sync for PrebuiltBinaryMessage
impl Unpin for PrebuiltBinaryMessage
impl UnsafeUnpin for PrebuiltBinaryMessage
impl UnwindSafe for PrebuiltBinaryMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);