#[repr(C)]
pub struct esp_http_client_event { pub event_id: esp_http_client_event_id_t, pub client: esp_http_client_handle_t, pub data: *mut c_void, pub data_len: c_int, pub user_data: *mut c_void, pub header_key: *mut c_char, pub header_value: *mut c_char, }
Expand description

@brief HTTP Client events data

Fields

event_id: esp_http_client_event_id_t

< event_id, to know the cause of the event

client: esp_http_client_handle_t

< esp_http_client_handle_t context

data: *mut c_void

< data of the event

data_len: c_int

< data length of data

user_data: *mut c_void

< user_data context, from esp_http_client_config_t user_data

header_key: *mut c_char

< For HTTP_EVENT_ON_HEADER event_id, it’s store current http header key

header_value: *mut c_char

< For HTTP_EVENT_ON_HEADER event_id, it’s store current http header value

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.