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
Parse
Error parsing the URL.
Fields of Parse
err: ParseError | The parse error. |
url: String | URL that failed to parse. |
WrongScheme
Found an unexpected scheme, not http
or https
.
Fields of WrongScheme
scheme: String | The scheme that wasn't |
url: Url | The URL that had this scheme. |
Methods
impl Error
[src]
fn from_err(error: ParseError, url: String) -> Self
[src]
Creates an error given the ParseError
and url String
.
fn wrong_scheme(scheme: String, url: Url) -> Self
[src]
Creates an error given the scheme String
and the url Url
.
Trait Implementations
impl Clone for Error
[src]
fn clone(&self) -> Error
[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
impl Debug for Error
[src]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more