pub enum TaskMode {
Async,
Sync,
}Expand description
Static task execution mode declared by the service.
Variants§
Async
The task is created and queried through the asynchronous API.
Sync
The task returns its result from the synchronous API.
Trait Implementations§
impl Copy for TaskMode
impl Eq for TaskMode
impl StructuralPartialEq for TaskMode
Auto Trait Implementations§
impl Freeze for TaskMode
impl RefUnwindSafe for TaskMode
impl Send for TaskMode
impl Sync for TaskMode
impl Unpin for TaskMode
impl UnsafeUnpin for TaskMode
impl UnwindSafe for TaskMode
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