Skip to main content

Crate wslay_sys

Crate wslay_sys 

Source
Expand description

Low-level FFI bindings to the vendored wslay WebSocket C library (MIT). Generated by bindgen at build time.

This crate is unsafe FFI only; the safe, async wrapper lives in ws-tcp.

Structs§

wslay_event_callbacks
wslay_event_context
wslay_event_fragmented_msg
wslay_event_msg
wslay_event_on_frame_recv_chunk_arg
wslay_event_on_frame_recv_start_arg
wslay_event_on_msg_recv_arg
wslay_frame_callbacks
wslay_frame_context
wslay_frame_iocb

Constants§

WSLAY_VERSION
wslay_error_WSLAY_ERR_CALLBACK_FAILURE
wslay_error_WSLAY_ERR_INVALID_ARGUMENT
wslay_error_WSLAY_ERR_INVALID_CALLBACK
wslay_error_WSLAY_ERR_NOMEM
wslay_error_WSLAY_ERR_NO_MORE_MSG
wslay_error_WSLAY_ERR_PROTO
wslay_error_WSLAY_ERR_WANT_READ
wslay_error_WSLAY_ERR_WANT_WRITE
wslay_error_WSLAY_ERR_WOULDBLOCK
wslay_io_flags_WSLAY_MSG_MORE
wslay_opcode_WSLAY_BINARY_FRAME
wslay_opcode_WSLAY_CONNECTION_CLOSE
wslay_opcode_WSLAY_CONTINUATION_FRAME
wslay_opcode_WSLAY_PING
wslay_opcode_WSLAY_PONG
wslay_opcode_WSLAY_TEXT_FRAME
wslay_status_code_WSLAY_CODE_ABNORMAL_CLOSURE
wslay_status_code_WSLAY_CODE_GOING_AWAY
wslay_status_code_WSLAY_CODE_INTERNAL_SERVER_ERROR
wslay_status_code_WSLAY_CODE_INVALID_FRAME_PAYLOAD_DATA
wslay_status_code_WSLAY_CODE_MANDATORY_EXT
wslay_status_code_WSLAY_CODE_MESSAGE_TOO_BIG
wslay_status_code_WSLAY_CODE_NORMAL_CLOSURE
wslay_status_code_WSLAY_CODE_NO_STATUS_RCVD
wslay_status_code_WSLAY_CODE_POLICY_VIOLATION
wslay_status_code_WSLAY_CODE_PROTOCOL_ERROR
wslay_status_code_WSLAY_CODE_TLS_HANDSHAKE
wslay_status_code_WSLAY_CODE_UNSUPPORTED_DATA

Functions§

wslay_event_config_set_allowed_rsv_bits
wslay_event_config_set_callbacks
wslay_event_config_set_max_recv_msg_length
wslay_event_config_set_no_buffering
wslay_event_context_client_init
wslay_event_context_free
wslay_event_context_server_init
wslay_event_get_close_received
wslay_event_get_close_sent
wslay_event_get_queued_msg_count
wslay_event_get_queued_msg_length
wslay_event_get_read_enabled
wslay_event_get_status_code_received
wslay_event_get_status_code_sent
wslay_event_get_write_enabled
wslay_event_queue_close
wslay_event_queue_fragmented_msg
wslay_event_queue_fragmented_msg_ex
wslay_event_queue_msg
wslay_event_queue_msg_ex
wslay_event_recv
wslay_event_send
wslay_event_set_error
wslay_event_shutdown_read
wslay_event_shutdown_write
wslay_event_want_read
wslay_event_want_write
wslay_event_write
wslay_frame_context_free
wslay_frame_context_init
wslay_frame_recv
wslay_frame_send
wslay_frame_write

Type Aliases§

wslay_error
wslay_event_context_ptr
wslay_event_fragmented_msg_callback
wslay_event_genmask_callback
wslay_event_on_frame_recv_chunk_callback
wslay_event_on_frame_recv_end_callback
wslay_event_on_frame_recv_start_callback
wslay_event_on_msg_recv_callback
wslay_event_recv_callback
wslay_event_send_callback
wslay_frame_context_ptr
wslay_frame_genmask_callback
wslay_frame_recv_callback
wslay_frame_send_callback
wslay_io_flags
wslay_opcode
wslay_status_code

Unions§

wslay_event_msg_source