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

Trait Implementations

impl PartialEq for Replica
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for Replica
[src]

impl Clone for Replica
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Replica
[src]

impl Debug for Replica
[src]

[src]

Formats the value using the given formatter.