pub struct Timeline {Show 13 fields
pub frames: Vec<Frame>,
pub spans: Vec<Span>,
pub inputs: Vec<Input>,
pub events: Vec<Event>,
pub wakes: Vec<(u64, NameId)>,
pub requests: Vec<Request>,
pub loops: Vec<(u64, LoopEvent)>,
pub gauges: Vec<Gauge>,
pub marks: Vec<Mark>,
pub notes: Vec<(u64, String)>,
pub placements: Vec<Placement>,
pub start: u64,
pub end: u64,
/* private fields */
}Expand description
Every record of a recording, placed: frames in order, everything else sorted by time.
Fields§
§frames: Vec<Frame>§spans: Vec<Span>Sorted by start; a parent before its children at one start.
inputs: Vec<Input>§events: Vec<Event>§wakes: Vec<(u64, NameId)>§requests: Vec<Request>§loops: Vec<(u64, LoopEvent)>§gauges: Vec<Gauge>§marks: Vec<Mark>§notes: Vec<(u64, String)>§placements: Vec<Placement>§start: u64The first and the last time any record is placed at.
end: u64Implementations§
Source§impl Timeline
impl Timeline
pub fn of(records: &[Record]) -> Timeline
Sourcepub fn extend(&mut self, records: &[Record])
pub fn extend(&mut self, records: &[Record])
Places more records, written after those it holds: what a stream read as it arrives (backlog F249) grows its timeline by, sorting only the end of each list the new records reach into.
Sourcepub fn loops_in(&self, from: u64, to: u64) -> &[(u64, LoopEvent)]
pub fn loops_in(&self, from: u64, to: u64) -> &[(u64, LoopEvent)]
The loop’s records in [from, to).
Sourcepub fn notes_in(&self, from: u64, to: u64) -> &[(u64, String)]
pub fn notes_in(&self, from: u64, to: u64) -> &[(u64, String)]
The notes written in [from, to).
Sourcepub fn placements_in(&self, from: u64, to: u64) -> &[Placement]
pub fn placements_in(&self, from: u64, to: u64) -> &[Placement]
The components placed in [from, to).
Sourcepub fn requests_in(&self, from: u64, to: u64) -> &[Request]
pub fn requests_in(&self, from: u64, to: u64) -> &[Request]
The requests in [from, to).
Trait Implementations§
impl StructuralPartialEq for Timeline
Auto Trait Implementations§
impl Forget for Timeline
impl Freeze for Timeline
impl RefUnwindSafe for Timeline
impl Send for Timeline
impl Sync for Timeline
impl Unpin for Timeline
impl UnsafeUnpin for Timeline
impl UnwindSafe for Timeline
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