#[non_exhaustive]pub enum RegistriesProtocol {
Git,
Sparse,
}Expand description
Specifies the protocol used to access crates.io.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Git
Causes Cargo to clone the entire index of all packages ever published to crates.io from https://github.com/rust-lang/crates.io-index/.
Sparse
A newer protocol which uses HTTPS to download only what is necessary from https://index.crates.io/.
Trait Implementations§
Source§impl Clone for RegistriesProtocol
impl Clone for RegistriesProtocol
Source§fn clone(&self) -> RegistriesProtocol
fn clone(&self) -> RegistriesProtocol
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 RegistriesProtocol
impl Debug for RegistriesProtocol
Source§impl<'de> Deserialize<'de> for RegistriesProtocol
impl<'de> Deserialize<'de> for RegistriesProtocol
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
impl Eq for RegistriesProtocol
Source§impl FromStr for RegistriesProtocol
impl FromStr for RegistriesProtocol
Source§impl PartialEq for RegistriesProtocol
impl PartialEq for RegistriesProtocol
Source§impl Serialize for RegistriesProtocol
impl Serialize for RegistriesProtocol
impl StructuralPartialEq for RegistriesProtocol
Auto Trait Implementations§
impl Freeze for RegistriesProtocol
impl RefUnwindSafe for RegistriesProtocol
impl Send for RegistriesProtocol
impl Sync for RegistriesProtocol
impl Unpin for RegistriesProtocol
impl UnsafeUnpin for RegistriesProtocol
impl UnwindSafe for RegistriesProtocol
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