Struct actix_web::test::TestApp

source ·
pub struct TestApp<S = ()> { /* private fields */ }
Expand description

Test application helper for testing request handlers.

Implementations

Register handler for “/”

Register middleware

Register resource. This method is similar to App::resource() method.

Trait Implementations

The associated type which is result of conversion.
Convert into HttpHandler object.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
Choose one element at random from the iterator. Read more
Choose one element at random from the iterator. Read more
Collects values at random from the iterator into a supplied buffer until that buffer is filled. Read more
Collects amount values at random from the iterator into a vector. Read more
Choose one element at random from the iterator. If you have a slice, it’s significantly faster to call the choose or choose_mut functions using the slice instead. Read more
Collects amount values at random from the iterator into a supplied buffer. Read more
Collects amount values at random from the iterator into a vector. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.