Enum dji_onboard::TaskType
[−]
[src]
pub enum TaskType { Simple(Task), Sleep { start_at: Option<Instant>, elapsed: Duration, dead: bool, }, }
Variants
Simple(Task)
Sleep
Fields of Sleep
start_at: Option<Instant> | |
elapsed: Duration | |
dead: bool |
Methods
impl TaskType
[src]
fn simple(task: Task) -> TaskType
fn sleep(elapsed: u64) -> TaskType
fn is_dead(&self) -> bool
fn is_oneway(&self) -> bool
fn is_started(&self) -> bool
Trait Implementations
impl Debug for TaskType
[src]
impl Clone for TaskType
[src]
fn clone(&self) -> TaskType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more