Struct esp_idf_svc::sys::http_parser_settings
source · #[repr(C)]pub struct http_parser_settings {
pub on_message_begin: Option<unsafe extern "C" fn(_: *mut http_parser) -> i32>,
pub on_url: Option<unsafe extern "C" fn(_: *mut http_parser, _: *const i8, _: usize) -> i32>,
pub on_status: Option<unsafe extern "C" fn(_: *mut http_parser, _: *const i8, _: usize) -> i32>,
pub on_header_field: Option<unsafe extern "C" fn(_: *mut http_parser, _: *const i8, _: usize) -> i32>,
pub on_header_value: Option<unsafe extern "C" fn(_: *mut http_parser, _: *const i8, _: usize) -> i32>,
pub on_headers_complete: Option<unsafe extern "C" fn(_: *mut http_parser) -> i32>,
pub on_body: Option<unsafe extern "C" fn(_: *mut http_parser, _: *const i8, _: usize) -> i32>,
pub on_message_complete: Option<unsafe extern "C" fn(_: *mut http_parser) -> i32>,
pub on_chunk_header: Option<unsafe extern "C" fn(_: *mut http_parser) -> i32>,
pub on_chunk_complete: Option<unsafe extern "C" fn(_: *mut http_parser) -> i32>,
}
Fields§
§on_message_begin: Option<unsafe extern "C" fn(_: *mut http_parser) -> i32>
§on_url: Option<unsafe extern "C" fn(_: *mut http_parser, _: *const i8, _: usize) -> i32>
§on_status: Option<unsafe extern "C" fn(_: *mut http_parser, _: *const i8, _: usize) -> i32>
§on_header_field: Option<unsafe extern "C" fn(_: *mut http_parser, _: *const i8, _: usize) -> i32>
§on_header_value: Option<unsafe extern "C" fn(_: *mut http_parser, _: *const i8, _: usize) -> i32>
§on_headers_complete: Option<unsafe extern "C" fn(_: *mut http_parser) -> i32>
§on_body: Option<unsafe extern "C" fn(_: *mut http_parser, _: *const i8, _: usize) -> i32>
§on_message_complete: Option<unsafe extern "C" fn(_: *mut http_parser) -> i32>
§on_chunk_header: Option<unsafe extern "C" fn(_: *mut http_parser) -> i32>
§on_chunk_complete: Option<unsafe extern "C" fn(_: *mut http_parser) -> i32>
Trait Implementations§
source§impl Clone for http_parser_settings
impl Clone for http_parser_settings
source§fn clone(&self) -> http_parser_settings
fn clone(&self) -> http_parser_settings
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for http_parser_settings
impl Debug for http_parser_settings
source§impl Default for http_parser_settings
impl Default for http_parser_settings
source§fn default() -> http_parser_settings
fn default() -> http_parser_settings
Returns the “default value” for a type. Read more
impl Copy for http_parser_settings
Auto Trait Implementations§
impl Freeze for http_parser_settings
impl RefUnwindSafe for http_parser_settings
impl Send for http_parser_settings
impl Sync for http_parser_settings
impl Unpin for http_parser_settings
impl UnwindSafe for http_parser_settings
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)