#[repr(C)]pub struct ecs_http_server_desc_t {
pub callback: ecs_http_reply_action_t,
pub ctx: *mut c_void,
pub port: u16,
pub ipaddr: *const c_char,
pub send_queue_wait_ms: i32,
}Expand description
Used with ecs_http_server_init.
Fields§
§callback: ecs_http_reply_action_t< Function called for each request
ctx: *mut c_void< Passed to callback (optional)
port: u16< HTTP port
ipaddr: *const c_char< Interface to listen on (optional)
send_queue_wait_ms: i32< Send queue wait time when empty
Trait Implementations§
Source§impl Clone for ecs_http_server_desc_t
impl Clone for ecs_http_server_desc_t
Source§fn clone(&self) -> ecs_http_server_desc_t
fn clone(&self) -> ecs_http_server_desc_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ecs_http_server_desc_t
impl Debug for ecs_http_server_desc_t
impl Copy for ecs_http_server_desc_t
Auto Trait Implementations§
impl Freeze for ecs_http_server_desc_t
impl RefUnwindSafe for ecs_http_server_desc_t
impl !Send for ecs_http_server_desc_t
impl !Sync for ecs_http_server_desc_t
impl Unpin for ecs_http_server_desc_t
impl UnwindSafe for ecs_http_server_desc_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more