pub struct AdaptiveTaskScheduler { /* private fields */ }
Expand description
Adaptive task scheduler
Implementations§
Source§impl AdaptiveTaskScheduler
impl AdaptiveTaskScheduler
pub fn new(config: &DistributedComputingConfig) -> CoreResult<Self>
pub fn start(&mut self) -> CoreResult<()>
pub fn submit_task(&mut self, task: DistributedTask) -> CoreResult<TaskId>
pub fn get_task_status(&self, taskid: &TaskId) -> Option<TaskStatus>
pub fn cancel_task(&self, _taskid: &TaskId) -> CoreResult<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdaptiveTaskScheduler
impl RefUnwindSafe for AdaptiveTaskScheduler
impl Send for AdaptiveTaskScheduler
impl Sync for AdaptiveTaskScheduler
impl Unpin for AdaptiveTaskScheduler
impl UnwindSafe for AdaptiveTaskScheduler
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more