Struct livesplit_core::Attempt
[−]
[src]
pub struct Attempt { /* fields omitted */ }
Methods
impl Attempt
[src]
fn new(
index: i32,
time: Time,
started: Option<AtomicDateTime>,
ended: Option<AtomicDateTime>,
pause_time: Option<TimeSpan>
) -> Self
index: i32,
time: Time,
started: Option<AtomicDateTime>,
ended: Option<AtomicDateTime>,
pause_time: Option<TimeSpan>
) -> Self
Constructs a new Attempt
.
impl Attempt
[src]
fn duration(&self) -> Option<TimeSpan>
Returns the Real Time Duration of the attempt. This either returns a 1.6+ Time Stamp based duration or the duration of the run (assuming it's not resetted) if it's from before LiveSplit 1.6. If it is from before 1.6 and resetted then it will return null.
fn index(&self) -> i32
fn time(&self) -> Time
fn pause_time(&self) -> Option<TimeSpan>
fn started(&self) -> Option<AtomicDateTime>
fn ended(&self) -> Option<AtomicDateTime>
Trait Implementations
impl Clone for Attempt
[src]
fn clone(&self) -> Attempt
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