pub enum ReadinessMethod {
Api,
Index,
Both,
}Expand description
Method for verifying crate visibility after publishing.
After a crate is published, Shipper can verify it becomes visible on the registry before proceeding. This catches issues like propagation delays or rejected publishes that Cargo might not report immediately.
§Example
ⓘ
use shipper::types::ReadinessMethod;
// Fast: check the registry HTTP API
let api = ReadinessMethod::Api;
// Accurate: check the sparse index directly
let index = ReadinessMethod::Index;
// Reliable: check both (slowest)
let both = ReadinessMethod::Both;§Performance
Api: ~1-2 requests per crate (fastest)Index: ~10-50 requests per crate (slower, most accurate)Both: Combines both methods (slowest, most reliable)
Variants§
Api
Check crates.io HTTP API (default, fast)
Makes HTTP requests to the registry’s API to check if the version is visible. Fast but may not catch all edge cases.
Index
Check sparse index (slower, more accurate)
Downloads and checks the sparse index for the crate. More accurate than API but requires more requests.
Both
Check both (slowest, most reliable)
Uses both API and index methods, only passing if both confirm visibility. Most reliable but slowest.
Trait Implementations§
Source§impl Clone for ReadinessMethod
impl Clone for ReadinessMethod
Source§fn clone(&self) -> ReadinessMethod
fn clone(&self) -> ReadinessMethod
Returns a duplicate of the value. Read more
1.0.0 · 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 ReadinessMethod
impl Debug for ReadinessMethod
Source§impl Default for ReadinessMethod
impl Default for ReadinessMethod
Source§fn default() -> ReadinessMethod
fn default() -> ReadinessMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReadinessMethod
impl<'de> Deserialize<'de> for ReadinessMethod
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ReadinessMethod
impl PartialEq for ReadinessMethod
Source§impl Serialize for ReadinessMethod
impl Serialize for ReadinessMethod
impl Copy for ReadinessMethod
impl Eq for ReadinessMethod
impl StructuralPartialEq for ReadinessMethod
Auto Trait Implementations§
impl Freeze for ReadinessMethod
impl RefUnwindSafe for ReadinessMethod
impl Send for ReadinessMethod
impl Sync for ReadinessMethod
impl Unpin for ReadinessMethod
impl UnsafeUnpin for ReadinessMethod
impl UnwindSafe for ReadinessMethod
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.