pub struct Trusted<'a> {
pub host: Option<&'a str>,
pub scheme: Option<&'a str>,
pub by: Option<&'a str>,
pub ip: IpAddr,
}Fields§
§host: Option<&'a str>§scheme: Option<&'a str>§by: Option<&'a str>§ip: IpAddrImplementations§
Source§impl<'a> Trusted<'a>
impl<'a> Trusted<'a>
pub fn scheme(&self) -> Option<&str>
pub fn host_with_port(&self) -> Option<&str>
pub fn host(&self) -> Option<&str>
pub fn port(&self) -> Option<u16>
pub fn by(&self) -> Option<&str>
pub fn ip(&self) -> IpAddr
pub fn from<T: RequestInformation>( ip_addr: IpAddr, request: &'a T, config: &Config, ) -> Self
Auto Trait Implementations§
impl<'a> Freeze for Trusted<'a>
impl<'a> RefUnwindSafe for Trusted<'a>
impl<'a> Send for Trusted<'a>
impl<'a> Sync for Trusted<'a>
impl<'a> Unpin for Trusted<'a>
impl<'a> UnwindSafe for Trusted<'a>
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