Struct flytrap::http::FlyClientIp
source · pub struct FlyClientIp(pub IpAddr);Available on crate feature
http only.Expand description
The Fly-Client-IP header: the IP address that Fly.io accepted the
incoming connection from.
Tuple Fields§
§0: IpAddrImplementations§
source§impl FlyClientIp
impl FlyClientIp
Trait Implementations§
source§impl Clone for FlyClientIp
impl Clone for FlyClientIp
source§fn clone(&self) -> FlyClientIp
fn clone(&self) -> FlyClientIp
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 FlyClientIp
impl Debug for FlyClientIp
source§impl Display for FlyClientIp
impl Display for FlyClientIp
source§impl From<FlyClientIp> for HeaderValue
impl From<FlyClientIp> for HeaderValue
source§fn from(value: FlyClientIp) -> Self
fn from(value: FlyClientIp) -> Self
Converts to this type from the input type.
source§impl Header for FlyClientIp
impl Header for FlyClientIp
source§impl Ord for FlyClientIp
impl Ord for FlyClientIp
source§fn cmp(&self, other: &FlyClientIp) -> Ordering
fn cmp(&self, other: &FlyClientIp) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for FlyClientIp
impl PartialEq for FlyClientIp
source§fn eq(&self, other: &FlyClientIp) -> bool
fn eq(&self, other: &FlyClientIp) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for FlyClientIp
impl PartialOrd for FlyClientIp
source§fn partial_cmp(&self, other: &FlyClientIp) -> Option<Ordering>
fn partial_cmp(&self, other: &FlyClientIp) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for FlyClientIp
impl Eq for FlyClientIp
impl StructuralEq for FlyClientIp
impl StructuralPartialEq for FlyClientIp
Auto Trait Implementations§
impl RefUnwindSafe for FlyClientIp
impl Send for FlyClientIp
impl Sync for FlyClientIp
impl Unpin for FlyClientIp
impl UnwindSafe for FlyClientIp
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