Enum actix_tools::sentry::sentry_client::protocol::IpAddress [−]
pub enum IpAddress {
Auto,
Exact(IpAddr),
}An IP address, either IPv4, IPv6 or Auto.
Variants
AutoThe IP address needs to be infered from the user's context.
Exact(IpAddr)The exact given IP address (v4 or v6).
Trait Implementations
impl Serialize for IpAddress
impl Serialize for IpAddressfn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer, Serialize this value into the given Serde serializer. Read more
impl PartialOrd<IpAddr> for IpAddress
impl PartialOrd<IpAddr> for IpAddressfn partial_cmp(&self, other: &IpAddr) -> Option<Ordering>
fn partial_cmp(&self, other: &IpAddr) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl PartialOrd<IpAddress> for IpAddress
impl PartialOrd<IpAddress> for IpAddressfn partial_cmp(&self, other: &IpAddress) -> Option<Ordering>
fn partial_cmp(&self, other: &IpAddress) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &IpAddress) -> bool
fn lt(&self, other: &IpAddress) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &IpAddress) -> bool
fn le(&self, other: &IpAddress) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &IpAddress) -> bool
fn gt(&self, other: &IpAddress) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &IpAddress) -> bool
fn ge(&self, other: &IpAddress) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Hash for IpAddress
impl Hash for IpAddressfn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, 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, Feeds a slice of this type into the given [Hasher]. Read more
impl Display for IpAddress
impl Display for IpAddressfn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Clone for IpAddress
impl Clone for IpAddressfn clone(&self) -> IpAddress
fn clone(&self) -> IpAddressReturns 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)Performs copy-assignment from source. Read more
impl FromStr for IpAddress
impl FromStr for IpAddresstype Err = AddrParseError
The associated error which can be returned from parsing.
fn from_str(string: &str) -> Result<IpAddress, AddrParseError>
fn from_str(string: &str) -> Result<IpAddress, AddrParseError>Parses a string s to return a value of this type. Read more
impl Default for IpAddress
impl Default for IpAddressimpl Debug for IpAddress
impl Debug for IpAddressfn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for IpAddress
impl<'de> Deserialize<'de> for IpAddressfn deserialize<D>(
deserializer: D
) -> Result<IpAddress, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<IpAddress, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl Copy for IpAddress
impl Copy for IpAddressimpl Ord for IpAddress
impl Ord for IpAddressfn cmp(&self, other: &IpAddress) -> Ordering
fn cmp(&self, other: &IpAddress) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Eq for IpAddress
impl Eq for IpAddressimpl PartialEq<IpAddress> for IpAddress
impl PartialEq<IpAddress> for IpAddressfn eq(&self, other: &IpAddress) -> bool
fn eq(&self, other: &IpAddress) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &IpAddress) -> bool
fn ne(&self, other: &IpAddress) -> boolThis method tests for !=.
impl PartialEq<IpAddr> for IpAddress
impl PartialEq<IpAddr> for IpAddressfn eq(&self, other: &IpAddr) -> bool
fn eq(&self, other: &IpAddr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl From<IpAddr> for IpAddress
impl From<IpAddr> for IpAddress