Struct abstutil::time::Timer [−][src]
pub struct Timer<'a> {
results: Vec<String>,
stack: Vec<StackEntry>,
outermost_name: String,
sink: Option<Box<dyn TimerSink + 'a>>,
}
Expand description
Hierarchial magic
Fields
results: Vec<String>
stack: Vec<StackEntry>
outermost_name: String
sink: Option<Box<dyn TimerSink + 'a>>
Implementations
pub fn new_with_sink(name: &str, sink: Box<dyn TimerSink + 'a>) -> Timer<'a>ⓘ
Execute the callback over all requests, using all CPUs available. The order of the result is deterministic and matches the input.
Like parallelize
, but leave one CPU free, to avoid thrashing the user’s system.
Trait Implementations
Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Like read
, except that it reads into a slice of buffers. Read more
can_vector
)Determines if this Read
er has an efficient read_vectored
implementation. Read more
read_initializer
)Determines if this Read
er can work with buffers of uninitialized
memory. Read more
Read all bytes until EOF in this source, placing them into buf
. Read more
Read all bytes until EOF in this source, appending them to buf
. Read more
Read the exact number of bytes required to fill buf
. Read more
Creates a “by reference” adapter for this instance of Read
. Read more
Creates an adapter which will chain this stream with another. Read more
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Timer<'a>
impl<'a> !UnwindSafe for Timer<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<R> TermRead for R where
R: Read + TermReadEventsAndRaw,
impl<R> TermRead for R where
R: Read + TermReadEventsAndRaw,
impl<R> TermReadEventsAndRaw for R where
R: Read,
impl<R> TermReadEventsAndRaw for R where
R: Read,
pub fn events_and_raw(self) -> EventsAndRaw<R>
pub fn events_and_raw(self) -> EventsAndRaw<R>
An iterator over input events and the bytes that define them.