#[repr(C)]pub struct aws_http_server_connection_options {
pub self_size: usize,
pub connection_user_data: *mut c_void,
pub on_incoming_request: aws_http_on_incoming_request_fn,
pub on_shutdown: aws_http_on_server_connection_shutdown_fn,
}
Expand description
Options for configuring a server-side aws_http_connection. Initialized with AWS_HTTP_SERVER_CONNECTION_OPTIONS_INIT to set default values.
Fields
self_size: usize
The sizeof() this struct, used for versioning. Set by AWS_HTTP_SERVER_CONNECTION_OPTIONS_INIT.
connection_user_data: *mut c_void
User data specific to this connection. Optional.
on_incoming_request: aws_http_on_incoming_request_fn
Invoked at the start of an incoming request.
Required.
The user must create a request handler stream and return it to the connection.
See aws_http_on_incoming_request_fn
.
on_shutdown: aws_http_on_server_connection_shutdown_fn
Invoked when the connection is shut down. Optional.
Trait Implementations
sourceimpl Clone for aws_http_server_connection_options
impl Clone for aws_http_server_connection_options
sourcefn clone(&self) -> aws_http_server_connection_options
fn clone(&self) -> aws_http_server_connection_options
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl PartialEq<aws_http_server_connection_options> for aws_http_server_connection_options
impl PartialEq<aws_http_server_connection_options> for aws_http_server_connection_options
sourcefn eq(&self, other: &aws_http_server_connection_options) -> bool
fn eq(&self, other: &aws_http_server_connection_options) -> bool
impl Copy for aws_http_server_connection_options
impl Eq for aws_http_server_connection_options
impl StructuralEq for aws_http_server_connection_options
impl StructuralPartialEq for aws_http_server_connection_options
Auto Trait Implementations
impl RefUnwindSafe for aws_http_server_connection_options
impl !Send for aws_http_server_connection_options
impl !Sync for aws_http_server_connection_options
impl Unpin for aws_http_server_connection_options
impl UnwindSafe for aws_http_server_connection_options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more