[−][src]Struct goose::goose::GooseClient
Fields
task_sets_index: usize
client: Client
task_set_host: Option<String>
min_wait: usize
max_wait: usize
config: Configuration
weighted_clients_index: usize
mode: GooseClientMode
weighted_on_start_tasks: Vec<Vec<usize>>
weighted_tasks: Vec<Vec<usize>>
weighted_bucket: usize
weighted_bucket_position: usize
weighted_on_stop_tasks: Vec<Vec<usize>>
request_name: String
requests: HashMap<String, GooseRequest>
Methods
impl GooseClient
[src]
pub fn new(
index: usize,
host: Option<String>,
min_wait: usize,
max_wait: usize,
configuration: &Configuration
) -> Self
[src]
index: usize,
host: Option<String>,
min_wait: usize,
max_wait: usize,
configuration: &Configuration
) -> Self
Create a new client state.
pub fn set_mode(&mut self, mode: GooseClientMode)
[src]
pub fn get(&mut self, path: &str) -> Result<Response, Error>
[src]
pub fn post(&mut self, path: &str, body: String) -> Result<Response, Error>
[src]
pub fn head(&mut self, path: &str) -> Result<Response, Error>
[src]
pub fn delete(&mut self, path: &str) -> Result<Response, Error>
[src]
pub fn goose_get(&mut self, path: &str) -> RequestBuilder
[src]
pub fn goose_post(&mut self, path: &str) -> RequestBuilder
[src]
pub fn goose_head(&mut self, path: &str) -> RequestBuilder
[src]
pub fn goose_put(&mut self, path: &str) -> RequestBuilder
[src]
pub fn goose_patch(&mut self, path: &str) -> RequestBuilder
[src]
pub fn goose_delete(&mut self, path: &str) -> RequestBuilder
[src]
pub fn goose_send(
&mut self,
request_builder: RequestBuilder
) -> Result<Response, Error>
[src]
&mut self,
request_builder: RequestBuilder
) -> Result<Response, Error>
Trait Implementations
impl Clone for GooseClient
[src]
fn clone(&self) -> GooseClient
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for GooseClient
[src]
Auto Trait Implementations
impl !RefUnwindSafe for GooseClient
impl Send for GooseClient
impl Sync for GooseClient
impl Unpin for GooseClient
impl !UnwindSafe for GooseClient
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,