Enum postgres_inet::MaskedIpAddrParseError [−][src]
pub enum MaskedIpAddrParseError {
Address(AddrParseError),
Netmask(ParseIntError),
Format,
}An error which can be returned when parsing a MaskedIpAddr.
Variants
Address(AddrParseError)An error occured in parsing the IP address
Netmask(ParseIntError)An error occured in parsing the netmask
FormatAn error occured elsewhere in parsing
Trait Implementations
impl Clone for MaskedIpAddrParseError[src]
impl Clone for MaskedIpAddrParseErrorfn clone(&self) -> MaskedIpAddrParseError[src]
fn clone(&self) -> MaskedIpAddrParseErrorReturns 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 Debug for MaskedIpAddrParseError[src]
impl Debug for MaskedIpAddrParseErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for MaskedIpAddrParseError[src]
impl PartialEq for MaskedIpAddrParseErrorfn eq(&self, other: &MaskedIpAddrParseError) -> bool[src]
fn eq(&self, other: &MaskedIpAddrParseError) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &MaskedIpAddrParseError) -> bool[src]
fn ne(&self, other: &MaskedIpAddrParseError) -> boolThis method tests for !=.
impl Eq for MaskedIpAddrParseError[src]
impl Eq for MaskedIpAddrParseErrorimpl Display for MaskedIpAddrParseError[src]
impl Display for MaskedIpAddrParseErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for MaskedIpAddrParseError[src]
impl Error for MaskedIpAddrParseErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>[src]
fn cause(&self) -> Option<&Error>The lower-level cause of this error, if any. Read more
impl From<AddrParseError> for MaskedIpAddrParseError[src]
impl From<AddrParseError> for MaskedIpAddrParseErrorfn from(from: AddrParseError) -> MaskedIpAddrParseError[src]
fn from(from: AddrParseError) -> MaskedIpAddrParseErrorPerforms the conversion.
impl From<ParseIntError> for MaskedIpAddrParseError[src]
impl From<ParseIntError> for MaskedIpAddrParseErrorfn from(from: ParseIntError) -> MaskedIpAddrParseError[src]
fn from(from: ParseIntError) -> MaskedIpAddrParseErrorPerforms the conversion.
Auto Trait Implementations
impl Send for MaskedIpAddrParseError
impl Send for MaskedIpAddrParseErrorimpl Sync for MaskedIpAddrParseError
impl Sync for MaskedIpAddrParseError