Struct machinery_api::foundation::WebSocketProtocolApi[][src]

#[repr(C)]
pub struct WebSocketProtocolApi { pub make_client_handshake: Option<unsafe extern "C" fn(buffer: *mut c_char, size: u32, host: *const c_char, port: u32, request: *const c_char, key: *const c_char)>, pub make_server_handshake: Option<unsafe extern "C" fn(buffer: *mut c_char, size: u32, key: *const c_char, key_size: u32)>, pub make_frame_header: Option<unsafe extern "C" fn(buffer: *mut u8, fin: bool, opcode: u8, size: u64, mask: u32) -> u32>, pub parse_frame_header: Option<unsafe extern "C" fn(buffer: *mut u8, buf_size: u64, fin: *mut bool, opcode: *mut u8, size: *mut u64, mask: *mut u32) -> u32>, pub mask_data: Option<unsafe extern "C" fn(data: *mut u8, size: u64, offset: u64, mask: u32)>, pub mask_segmented_buffer: Option<unsafe extern "C" fn(seg: *mut SegmentedBufferT, size: u64, mask: u32)>, }

Fields

make_client_handshake: Option<unsafe extern "C" fn(buffer: *mut c_char, size: u32, host: *const c_char, port: u32, request: *const c_char, key: *const c_char)>make_server_handshake: Option<unsafe extern "C" fn(buffer: *mut c_char, size: u32, key: *const c_char, key_size: u32)>make_frame_header: Option<unsafe extern "C" fn(buffer: *mut u8, fin: bool, opcode: u8, size: u64, mask: u32) -> u32>parse_frame_header: Option<unsafe extern "C" fn(buffer: *mut u8, buf_size: u64, fin: *mut bool, opcode: *mut u8, size: *mut u64, mask: *mut u32) -> u32>mask_data: Option<unsafe extern "C" fn(data: *mut u8, size: u64, offset: u64, mask: u32)>mask_segmented_buffer: Option<unsafe extern "C" fn(seg: *mut SegmentedBufferT, size: u64, mask: u32)>

Implementations

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.