Enum uriparse::authority::InvalidPort [−][src]
pub enum InvalidPort { InvalidCharacter, Overflow, }
An error representing an invalid port.
Variants
InvalidCharacter
An invalid character was used in the port. Only decimal digits are allowed.
Overflow
The port was a valid number, but it was too large to fit in a u16
.
Trait Implementations
impl From<InvalidPort> for InvalidAuthority
[src]
impl From<InvalidPort> for InvalidAuthority
fn from(value: InvalidPort) -> Self
[src]
fn from(value: InvalidPort) -> Self
Performs the conversion.
impl Clone for InvalidPort
[src]
impl Clone for InvalidPort
fn clone(&self) -> InvalidPort
[src]
fn clone(&self) -> InvalidPort
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for InvalidPort
[src]
impl Copy for InvalidPort
impl Debug for InvalidPort
[src]
impl Debug for InvalidPort
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for InvalidPort
[src]
impl Eq for InvalidPort
impl Hash for InvalidPort
[src]
impl Hash for InvalidPort
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for InvalidPort
[src]
impl PartialEq for InvalidPort
fn eq(&self, other: &InvalidPort) -> bool
[src]
fn eq(&self, other: &InvalidPort) -> bool
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]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Display for InvalidPort
[src]
impl Display for InvalidPort
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for InvalidPort
[src]
impl Error for InvalidPort
Auto Trait Implementations
impl Send for InvalidPort
impl Send for InvalidPort
impl Sync for InvalidPort
impl Sync for InvalidPort