pub struct RegistryProfile {
pub name: &'static str,
pub first_publish_burst: Option<u32>,
pub first_publish_refill: Option<Duration>,
pub version_publish_burst: Option<u32>,
pub version_publish_refill: Option<Duration>,
pub propagation_model: RegistryPropagationModel,
pub ambiguity_model: RegistryAmbiguityModel,
}Expand description
Registry-specific publish constraints that affect retry pacing and operator estimates.
Fields§
§name: &'static strStable registry profile name.
first_publish_burst: Option<u32>Initial first-publish burst, when documented.
first_publish_refill: Option<Duration>First-publish refill interval, when documented.
version_publish_burst: Option<u32>Initial version-update burst, when documented.
version_publish_refill: Option<Duration>Version-update refill interval, when documented.
propagation_model: RegistryPropagationModelRegistry visibility model used by readiness/reconciliation.
ambiguity_model: RegistryAmbiguityModelRegistry ambiguity model used after cargo exits unclearly.
Implementations§
Source§impl RegistryProfile
impl RegistryProfile
Sourcepub const fn unknown() -> Self
pub const fn unknown() -> Self
Conservative profile for registries without documented constraints.
Sourcepub fn for_registry_name(name: &str) -> Self
pub fn for_registry_name(name: &str) -> Self
Resolve Shipper’s built-in profile for a registry name.
Sourcepub fn retry_floor_for(
self,
regime: PublishRegime,
error_message: &str,
) -> Option<Duration>
pub fn retry_floor_for( self, regime: PublishRegime, error_message: &str, ) -> Option<Duration>
Return the documented retry floor for this publish regime, if any.
Trait Implementations§
Source§impl Clone for RegistryProfile
impl Clone for RegistryProfile
Source§fn clone(&self) -> RegistryProfile
fn clone(&self) -> RegistryProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegistryProfile
impl Debug for RegistryProfile
Source§impl PartialEq for RegistryProfile
impl PartialEq for RegistryProfile
Source§fn eq(&self, other: &RegistryProfile) -> bool
fn eq(&self, other: &RegistryProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RegistryProfile
impl Eq for RegistryProfile
impl StructuralPartialEq for RegistryProfile
Auto Trait Implementations§
impl Freeze for RegistryProfile
impl RefUnwindSafe for RegistryProfile
impl Send for RegistryProfile
impl Sync for RegistryProfile
impl Unpin for RegistryProfile
impl UnsafeUnpin for RegistryProfile
impl UnwindSafe for RegistryProfile
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.