Function scratchstack_wrapper_aws_c_io::aws_pipe_write
source · pub unsafe extern "C" fn aws_pipe_write(
write_end: *mut aws_pipe_write_end,
src_buffer: aws_byte_cursor,
on_completed: aws_pipe_on_write_completed_fn,
user_data: *mut c_void
) -> c_int
Expand description
Initiates an asynchrous write from the source buffer to the pipe.
The data referenced by src_buffer
must remain in memory until the operation completes.
on_complete
is called on the event-loop thread when the operation has either completed or failed.
The callback’s pipe argument will be NULL if the callback is invoked after the pipe has been cleaned up.
This must be called on the thread of the connected event-loop.