Struct netloc_http_request::HttpRequest[][src]

pub struct HttpRequest {
    pub client: Client,
    pub url: String,
}

A Reporter that sends the data to the specified URL.

Fields

client: Client

HTTP client.

url: String

The URL to send the request to.

Implementations

impl HttpRequest[src]

pub fn from_url(url: impl Into<String>) -> Self[src]

Create a new HttpRequest reporter from a url.

Trait Implementations

impl Reporter for HttpRequest[src]

type Error = Box<dyn Error>

The error that this reporter can produce.

Auto Trait Implementations

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

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.