Enum screeps_api::websocket::connecting::UrlError [] [src]

pub enum UrlError {
    Parse {
        err: ParseError,
        url: String,
    },
    WrongScheme {
        scheme: String,
        url: Url,
    },
}

Error turning a screeps API url into a websocket url.

Variants

Error parsing the URL.

Fields of Parse

The parse error.

URL that failed to parse.

Found an unexpected scheme, not http or https.

Fields of WrongScheme

The scheme that wasn't http or https.

The URL that had this scheme.

Methods

impl Error
[src]

[src]

Creates an error given the ParseError and url String.

[src]

Creates an error given the scheme String and the url Url.

Trait Implementations

impl Clone for Error
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more