pub enum Addressable {
IpAddr(IpAddr),
Socket(SocketAddr),
Unknown,
}Expand description
CloudFront seems to return one of three types of “IPs” if the field is set:
- IP address (e.g. 1.2.3.4, 2001:db8:85a3:8d3:1319:8a2e:370:7348)
- Socket address (e.g. 1.2.3.4:6969)
- “Unknown”
Variants§
Trait Implementations§
Source§impl Clone for Addressable
impl Clone for Addressable
Source§fn clone(&self) -> Addressable
fn clone(&self) -> Addressable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Addressable
impl Debug for Addressable
Source§impl From<IpAddr> for Addressable
impl From<IpAddr> for Addressable
Source§impl From<SocketAddr> for Addressable
impl From<SocketAddr> for Addressable
Source§fn from(socket: SocketAddr) -> Self
fn from(socket: SocketAddr) -> Self
Converts to this type from the input type.
Source§impl FromStr for Addressable
impl FromStr for Addressable
Source§impl PartialEq for Addressable
impl PartialEq for Addressable
Source§impl TryFrom<&str> for Addressable
impl TryFrom<&str> for Addressable
impl StructuralPartialEq for Addressable
Auto Trait Implementations§
impl Freeze for Addressable
impl RefUnwindSafe for Addressable
impl Send for Addressable
impl Sync for Addressable
impl Unpin for Addressable
impl UnwindSafe for Addressable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more