Struct esp_idf_sys::http_parser
source · #[repr(C)]pub struct http_parser {
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>,
pub nread: u32,
pub content_length: u64,
pub http_major: c_ushort,
pub http_minor: c_ushort,
pub _bitfield_align_2: [u16; 0],
pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4]>,
pub data: *mut c_void,
}
Fields§
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>
§nread: u32
§content_length: u64
§http_major: c_ushort
READ-ONLY
http_minor: c_ushort
§_bitfield_align_2: [u16; 0]
§_bitfield_2: __BindgenBitfieldUnit<[u8; 4]>
§data: *mut c_void
PUBLIC
Implementations§
source§impl http_parser
impl http_parser
pub fn type_(&self) -> c_uint
pub fn set_type(&mut self, val: c_uint)
pub fn flags(&self) -> c_uint
pub fn set_flags(&mut self, val: c_uint)
pub fn state(&self) -> c_uint
pub fn set_state(&mut self, val: c_uint)
pub fn header_state(&self) -> c_uint
pub fn set_header_state(&mut self, val: c_uint)
pub fn index(&self) -> c_uint
pub fn set_index(&mut self, val: c_uint)
pub fn lenient_http_headers(&self) -> c_uint
pub fn set_lenient_http_headers(&mut self, val: c_uint)
pub fn new_bitfield_1( type_: c_uint, flags: c_uint, state: c_uint, header_state: c_uint, index: c_uint, lenient_http_headers: c_uint, ) -> __BindgenBitfieldUnit<[u8; 4]>
pub fn status_code(&self) -> c_uint
pub fn set_status_code(&mut self, val: c_uint)
pub fn method(&self) -> c_uint
pub fn set_method(&mut self, val: c_uint)
pub fn http_errno(&self) -> c_uint
pub fn set_http_errno(&mut self, val: c_uint)
pub fn upgrade(&self) -> c_uint
pub fn set_upgrade(&mut self, val: c_uint)
pub fn new_bitfield_2( status_code: c_uint, method: c_uint, http_errno: c_uint, upgrade: c_uint, ) -> __BindgenBitfieldUnit<[u8; 4]>
Trait Implementations§
source§impl Clone for http_parser
impl Clone for http_parser
source§fn clone(&self) -> http_parser
fn clone(&self) -> http_parser
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
impl Debug for http_parser
source§impl Default for http_parser
impl Default for http_parser
impl Copy for http_parser
Auto Trait Implementations§
impl Freeze for http_parser
impl RefUnwindSafe for http_parser
impl !Send for http_parser
impl !Sync for http_parser
impl Unpin for http_parser
impl UnwindSafe for http_parser
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
)