#[repr(C)]
pub struct aws_channel_options { pub event_loop: *mut aws_event_loop, pub on_setup_completed: aws_channel_on_setup_completed_fn, pub on_shutdown_completed: aws_channel_on_shutdown_completed_fn, pub setup_user_data: *mut c_void, pub shutdown_user_data: *mut c_void, pub enable_read_back_pressure: bool, }
Expand description

Args for creating a new channel. event_loop to use for IO and tasks. on_setup_completed will be invoked when the setup process is finished It will be executed in the event loop’s thread. on_shutdown_completed will be executed upon channel shutdown.

enable_read_back_pressure toggles whether or not back pressure will be applied in the channel. Leave this option off unless you’re using something like reactive-streams, since it is a slight throughput penalty.

Unless otherwise specified all functions for channels and channel slots must be executed within that channel’s event-loop’s thread.

Fields

event_loop: *mut aws_event_loopon_setup_completed: aws_channel_on_setup_completed_fnon_shutdown_completed: aws_channel_on_shutdown_completed_fnsetup_user_data: *mut c_voidshutdown_user_data: *mut c_voidenable_read_back_pressure: bool

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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.