#[repr(C)]pub struct aws_http1_chunk_options {
pub chunk_data: *mut aws_input_stream,
pub chunk_data_size: u64,
pub extensions: *mut aws_http1_chunk_extension,
pub num_extensions: usize,
pub on_complete: aws_http1_stream_write_chunk_complete_fn,
pub user_data: *mut c_void,
}
Expand description
Encoding options for an HTTP/1.1 chunked transfer encoding chunk.
Fields
chunk_data: *mut aws_input_stream
chunk_data_size: u64
extensions: *mut aws_http1_chunk_extension
A pointer to an array of chunked extensions. The num_extensions must match the length of the array. This data is deep-copied by aws_http1_stream_write_chunk(), it does not need to remain valid until on_complete is invoked.
num_extensions: usize
The number of elements defined in the extensions array.
on_complete: aws_http1_stream_write_chunk_complete_fn
Invoked when the chunk data is no longer in use, whether or not it was successfully sent.
Optional.
See aws_http1_stream_write_chunk_complete_fn
.
user_data: *mut c_void
User provided data passed to the on_complete callback on its invocation.
Trait Implementations
sourceimpl Clone for aws_http1_chunk_options
impl Clone for aws_http1_chunk_options
sourcefn clone(&self) -> aws_http1_chunk_options
fn clone(&self) -> aws_http1_chunk_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 Debug for aws_http1_chunk_options
impl Debug for aws_http1_chunk_options
sourceimpl Default for aws_http1_chunk_options
impl Default for aws_http1_chunk_options
sourceimpl PartialEq<aws_http1_chunk_options> for aws_http1_chunk_options
impl PartialEq<aws_http1_chunk_options> for aws_http1_chunk_options
sourcefn eq(&self, other: &aws_http1_chunk_options) -> bool
fn eq(&self, other: &aws_http1_chunk_options) -> bool
impl Copy for aws_http1_chunk_options
impl Eq for aws_http1_chunk_options
impl StructuralEq for aws_http1_chunk_options
impl StructuralPartialEq for aws_http1_chunk_options
Auto Trait Implementations
impl RefUnwindSafe for aws_http1_chunk_options
impl !Send for aws_http1_chunk_options
impl !Sync for aws_http1_chunk_options
impl Unpin for aws_http1_chunk_options
impl UnwindSafe for aws_http1_chunk_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