pub trait MahimahiExt: Mahimahi {
// Provided methods
fn mahimahi_to_string(&mut self, total_dur: &Duration) -> String { ... }
fn mahimahi_to_file<P: AsRef<Path>>(
&mut self,
total_dur: &Duration,
path: P,
) { ... }
}
Expand description
The MahimahiExt
trait provides some convenient methods to generate a trace in mahimahi format.
Provided Methods§
Sourcefn mahimahi_to_string(&mut self, total_dur: &Duration) -> String
fn mahimahi_to_string(&mut self, total_dur: &Duration) -> String
Join the mahimahi timestamp sequence to a string.
Sourcefn mahimahi_to_file<P: AsRef<Path>>(&mut self, total_dur: &Duration, path: P)
fn mahimahi_to_file<P: AsRef<Path>>(&mut self, total_dur: &Duration, path: P)
Write the mahimahi timestamp sequence to a file.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.