[][src]Struct goose::goose::GooseRawRequest

pub struct GooseRawRequest {
    pub method: GooseMethod,
    pub name: String,
    pub response_time: u128,
    pub status_code: Option<StatusCode>,
    pub success: bool,
    pub update: bool,
}

The request that Goose is making. Client threads send this data to the parent thread when statistics are enabled. This request object must be provided to calls to set_success or set_failure so Goose knows which request is being updated.

Fields

method: GooseMethod

The method being used (ie, GET, POST, etc).

name: String

The optional name of the request.

response_time: u128

How many milliseconds the request took.

status_code: Option<StatusCode>

The HTTP response code (optional).

success: bool

Whether or not the request was successful.

update: bool

Whether or not we're updating a previous request, modifies how the parent thread records it.

Implementations

impl GooseRawRequest[src]

pub fn new(method: GooseMethod, name: &str) -> Self[src]

Trait Implementations

impl Clone for GooseRawRequest[src]

impl Debug for GooseRawRequest[src]

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,