Struct esp_idf_sys::httpd_uri
source · #[repr(C)]pub struct httpd_uri {
pub uri: *const c_char,
pub method: httpd_method_t,
pub handler: Option<unsafe extern "C" fn(r: *mut httpd_req_t) -> esp_err_t>,
pub user_ctx: *mut c_void,
}
Expand description
@brief Structure for URI handler
Fields§
§uri: *const c_char
< The URI to handle
method: httpd_method_t
< Method supported by the URI
handler: Option<unsafe extern "C" fn(r: *mut httpd_req_t) -> esp_err_t>
Handler to call for supported request method. This must return ESP_OK, or else the underlying socket will be closed.
user_ctx: *mut c_void
Pointer to user context data which will be available to handler
Trait Implementations§
impl Copy for httpd_uri
Auto Trait Implementations§
impl Freeze for httpd_uri
impl RefUnwindSafe for httpd_uri
impl !Send for httpd_uri
impl !Sync for httpd_uri
impl Unpin for httpd_uri
impl UnwindSafe for httpd_uri
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: 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
)§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
)