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
sourceimpl 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
sourceimpl Clone for http_parser
impl Clone for http_parser
sourcefn clone(&self) -> http_parser
fn clone(&self) -> http_parser
Returns a copy of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for http_parser
impl Debug for http_parser
sourceimpl Default for http_parser
impl Default for http_parser
impl Copy for http_parser
Auto Trait Implementations
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> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more