[][src]Struct bandsocks::Registry

pub struct Registry { /* fields omitted */ }

Name of a Docker-style image registry server

This is a domain name, with an optional port. Typically the protocol is https, but we include the same heuristic Docker uses to improve the ergonomics of development setups: if a domain has no dots in it, the protocol switches to unencrypted http.

For information on running your own registry server for development, see https://docs.docker.com/registry/deploying/

Implementations

impl Registry[src]

pub fn as_str(&self) -> &str[src]

Returns a reference to the existing string representation of a Registry

Always consists of a domain name with optional port, which have been validated by the parser. May include alphanumeric characters, at most one colon, and it may include single dots at positions other than the beginning of the string.

pub fn parse(s: &str) -> Result<Self, ImageError>[src]

Parse a str as a Registry

pub fn domain_str(&self) -> &str[src]

Returns a reference to the domain portion of the string

pub fn port(&self) -> Option<u16>[src]

Returns the port, if present

pub fn is_https(&self) -> bool[src]

Are we using https to connect to the registry?

pub fn protocol_str(&self) -> &str[src]

The protocol to use, either "http" or "https"

Trait Implementations

impl Clone for Registry[src]

impl Debug for Registry[src]

impl Display for Registry[src]

impl Eq for Registry[src]

impl From<Registry> for DefaultRegistry[src]

impl FromStr for Registry[src]

type Err = ImageError

The associated error which can be returned from parsing.

impl Hash for Registry[src]

impl Ord for Registry[src]

impl PartialEq<Registry> for Registry[src]

impl PartialOrd<Registry> for Registry[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,