pub struct RunnableTask<R: Runnable> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<R: 'static + Runnable> Task for RunnableTask<R>
impl<R: 'static + Runnable> Task for RunnableTask<R>
fn get_task_id(&self) -> TaskId
fn get_task_type(&self) -> TaskType
fn get_task_category(&self) -> TaskCategory
fn need_persist(&self) -> bool
fn get_task_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = TaskStatus> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_task_store<'life0, 'async_trait>(
&'life0 mut self,
task_store: Arc<dyn TaskStore>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_task<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pause_task<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop_task<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn check_and_waiting_stop<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_task_detail_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BuckyResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<R> Freeze for RunnableTask<R>
impl<R> RefUnwindSafe for RunnableTask<R>where
R: RefUnwindSafe,
impl<R> Send for RunnableTask<R>
impl<R> Sync for RunnableTask<R>
impl<R> Unpin for RunnableTask<R>
impl<R> UnwindSafe for RunnableTask<R>where
R: RefUnwindSafe,
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