Enum cloudfront_logs::types::Addressable
source · 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 copy 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§fn eq(&self, other: &Addressable) -> bool
fn eq(&self, other: &Addressable) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)