pub struct AsyncContext { /* private fields */ }Expand description
Async execution context for I/O-bound work
Implementations§
Source§impl AsyncContext
impl AsyncContext
Sourcepub fn new() -> AsyncContext
pub fn new() -> AsyncContext
Create a new async context
Sourcepub fn with_batch_size(batch_size: usize) -> AsyncContext
pub fn with_batch_size(batch_size: usize) -> AsyncContext
Create with specific batch size
Sourcepub fn with_max_concurrent(self, max_concurrent: usize) -> AsyncContext
pub fn with_max_concurrent(self, max_concurrent: usize) -> AsyncContext
Set maximum concurrent operations
Trait Implementations§
Source§impl Clone for AsyncContext
impl Clone for AsyncContext
Source§fn clone(&self) -> AsyncContext
fn clone(&self) -> AsyncContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for AsyncContext
impl Default for AsyncContext
Source§fn default() -> AsyncContext
fn default() -> AsyncContext
Returns the “default value” for a type. Read more
Source§impl ExecutionBase for AsyncContext
impl ExecutionBase for AsyncContext
Auto Trait Implementations§
impl Freeze for AsyncContext
impl RefUnwindSafe for AsyncContext
impl Send for AsyncContext
impl Sync for AsyncContext
impl Unpin for AsyncContext
impl UnsafeUnpin for AsyncContext
impl UnwindSafe for AsyncContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more