[][src]Struct warp::filters::log::Info

pub struct Info<'a> { /* fields omitted */ }

Information about the request/response that can be used to prepare log lines.

Methods

impl<'a> Info<'a>[src]

pub fn remote_addr(&self) -> Option<SocketAddr>[src]

View the remote SocketAddr of the request.

pub fn method(&self) -> &Method[src]

View the http::Method of the request.

pub fn path(&self) -> &str[src]

View the URI path of the request.

pub fn version(&self) -> Version[src]

View the http::Version of the request.

pub fn status(&self) -> StatusCode[src]

View the http::StatusCode of the response.

pub fn referer(&self) -> Option<&str>[src]

View the referer of the request.

pub fn user_agent(&self) -> Option<&str>[src]

View the user agent of the request.

pub fn elapsed(&self) -> Duration[src]

View the Duration that elapsed for the request.

pub fn host(&self) -> Option<&str>[src]

View the host of the request

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Info<'a>

impl<'a> !Send for Info<'a>

impl<'a> !Sync for Info<'a>

impl<'a> Unpin for Info<'a>

impl<'a> !UnwindSafe for Info<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,