pub struct AsyncScheduler { /* private fields */ }
Implementations§
Source§impl AsyncScheduler
impl AsyncScheduler
pub fn config(&self) -> &AsyncSchedulerConfig
Source§impl AsyncScheduler
impl AsyncScheduler
Sourcepub fn with_config(cfg: AsyncSchedulerConfig) -> AsyncScheduler
pub fn with_config(cfg: AsyncSchedulerConfig) -> AsyncScheduler
Helper that builds an AsyncScheduler
with provided config.
Sourcepub fn new_test(strategy: BatchingStrategy) -> Result<Self, NetworkError>
pub fn new_test(strategy: BatchingStrategy) -> Result<Self, NetworkError>
Test-only constructor that lets us pick a BatchingStrategy quickly.
Source§impl AsyncScheduler
impl AsyncScheduler
pub fn execute_network<'threads, T>( &self, network: Arc<AsyncMutex<Network<T>>>, ) -> Result<(PerformanceStats, Option<StreamingOutput<T>>), NetworkError>
Trait Implementations§
Source§impl Clone for AsyncScheduler
impl Clone for AsyncScheduler
Source§fn clone(&self) -> AsyncScheduler
fn clone(&self) -> AsyncScheduler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AsyncScheduler
impl !RefUnwindSafe for AsyncScheduler
impl Send for AsyncScheduler
impl Sync for AsyncScheduler
impl Unpin for AsyncScheduler
impl !UnwindSafe for AsyncScheduler
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