#[repr(C)]
pub struct aws_socket {
Show 14 fields pub allocator: *mut aws_allocator, pub local_endpoint: aws_socket_endpoint, pub remote_endpoint: aws_socket_endpoint, pub options: aws_socket_options, pub io_handle: aws_io_handle, pub event_loop: *mut aws_event_loop, pub handler: *mut aws_channel_handler, pub state: c_int, pub readable_fn: aws_socket_on_readable_fn, pub readable_user_data: *mut c_void, pub connection_result_fn: aws_socket_on_connection_result_fn, pub accept_result_fn: aws_socket_on_accept_result_fn, pub connect_accept_user_data: *mut c_void, pub impl_: *mut c_void,
}

Fields

allocator: *mut aws_allocatorlocal_endpoint: aws_socket_endpointremote_endpoint: aws_socket_endpointoptions: aws_socket_optionsio_handle: aws_io_handleevent_loop: *mut aws_event_loophandler: *mut aws_channel_handlerstate: c_intreadable_fn: aws_socket_on_readable_fnreadable_user_data: *mut c_voidconnection_result_fn: aws_socket_on_connection_result_fnaccept_result_fn: aws_socket_on_accept_result_fnconnect_accept_user_data: *mut c_voidimpl_: *mut c_void

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.