pub struct TracesConfig {
pub traces_db: TracesDb,
pub devices: HashMap<String, DeviceEntry>,
pub traces: Vec<TraceEntry>,
}Fields§
§traces_db: TracesDb§devices: HashMap<String, DeviceEntry>Per-device declarations (memory capacity, etc). Devices referenced by trace entries but not present here are treated as having zero capacity.
traces: Vec<TraceEntry>Implementations§
Source§impl TracesConfig
impl TracesConfig
pub fn load(path: &Path) -> Result<TracesConfig>
Sourcepub fn active_for_device<'a>(
&'a self,
device: &'a str,
) -> impl Iterator<Item = (&'a TraceEntry, &'a TraceDeviceEntry)>
pub fn active_for_device<'a>( &'a self, device: &'a str, ) -> impl Iterator<Item = (&'a TraceEntry, &'a TraceDeviceEntry)>
Iterates over traces that have an entry for device and are not marked skip.
Trait Implementations§
Source§impl Debug for TracesConfig
impl Debug for TracesConfig
Source§impl<'de> Deserialize<'de> for TracesConfig
impl<'de> Deserialize<'de> for TracesConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TracesConfig
impl RefUnwindSafe for TracesConfig
impl Send for TracesConfig
impl Sync for TracesConfig
impl Unpin for TracesConfig
impl UnsafeUnpin for TracesConfig
impl UnwindSafe for TracesConfig
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