pub struct ForwardedStanza {
pub forwarded_by: Option<Identifier>,
pub forwarded_for: Option<Identifier>,
pub forwarded_host: Option<String>,
pub forwarded_proto: Option<Protocol>,
}
Expand description
A single forwarded-for line; there may be a sequence of these in a Forwarded header.
Any parts not specified will be None
Fields§
§forwarded_by: Option<Identifier>
§forwarded_for: Option<Identifier>
§forwarded_host: Option<String>
§forwarded_proto: Option<Protocol>
Implementations§
Source§impl ForwardedStanza
impl ForwardedStanza
Sourcepub fn forwarded_for_ip(&self) -> Option<IpAddr>
pub fn forwarded_for_ip(&self) -> Option<IpAddr>
Get the forwarded-for IP, if one is present
Sourcepub fn forwarded_by_ip(&self) -> Option<IpAddr>
pub fn forwarded_by_ip(&self) -> Option<IpAddr>
Get the forwarded-by IP, if one is present
Trait Implementations§
Source§impl Debug for ForwardedStanza
impl Debug for ForwardedStanza
Source§impl Default for ForwardedStanza
impl Default for ForwardedStanza
Source§fn default() -> ForwardedStanza
fn default() -> ForwardedStanza
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ForwardedStanza
impl RefUnwindSafe for ForwardedStanza
impl Send for ForwardedStanza
impl Sync for ForwardedStanza
impl Unpin for ForwardedStanza
impl UnwindSafe for ForwardedStanza
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