Enum cargo_registry::Replica
[−]
[src]
pub enum Replica { Primary, ReadOnlyMirror, }
Used for setting different values depending on the type of registry this instance is.
Primary
indicates this instance is a primary registry that is the source of truth for these
crates' information. ReadOnlyMirror
indicates this instanceis a read-only mirror of crate
information that exists on another instance.
The app's config.mirror
value is set in src/bin/server.rs to ReadOnlyMirror
if the
MIRROR
environment variable is set and to Primary
otherwise.
There may be more ways to run crates.io servers in the future, such as a mirror that also has private crates that crates.io does not have.
Variants
Primary
ReadOnlyMirror
Trait Implementations
impl PartialEq for Replica
[src]
fn eq(&self, __arg_0: &Replica) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Replica
[src]
fn assert_receiver_is_total_eq(&self)
[src]
impl Clone for Replica
[src]
fn clone(&self) -> Replica
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more