#[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_loop
on_setup_completed: aws_channel_on_setup_completed_fn
on_shutdown_completed: aws_channel_on_shutdown_completed_fn
setup_user_data: *mut c_void
shutdown_user_data: *mut c_void
enable_read_back_pressure: bool
Trait Implementations
sourceimpl Clone for aws_channel_options
impl Clone for aws_channel_options
sourcefn clone(&self) -> aws_channel_options
fn clone(&self) -> aws_channel_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_channel_options
impl Debug for aws_channel_options
sourceimpl Default for aws_channel_options
impl Default for aws_channel_options
sourceimpl PartialEq<aws_channel_options> for aws_channel_options
impl PartialEq<aws_channel_options> for aws_channel_options
sourcefn eq(&self, other: &aws_channel_options) -> bool
fn eq(&self, other: &aws_channel_options) -> bool
impl Copy for aws_channel_options
impl Eq for aws_channel_options
impl StructuralEq for aws_channel_options
impl StructuralPartialEq for aws_channel_options
Auto Trait Implementations
impl RefUnwindSafe for aws_channel_options
impl !Send for aws_channel_options
impl !Sync for aws_channel_options
impl Unpin for aws_channel_options
impl UnwindSafe for aws_channel_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