pub struct AsyncContext { /* private fields */ }Expand description
Async execution context for I/O-bound work
Implementations§
Source§impl AsyncContext
impl AsyncContext
Sourcepub fn with_batch_size(batch_size: usize) -> Self
pub fn with_batch_size(batch_size: usize) -> Self
Create with specific batch size
Sourcepub fn with_max_concurrent(self, max_concurrent: usize) -> Self
pub fn with_max_concurrent(self, max_concurrent: usize) -> Self
Set maximum concurrent operations
Trait Implementations§
Source§impl Clone for AsyncContext
impl Clone for AsyncContext
Source§impl Default for AsyncContext
impl Default for AsyncContext
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