pub struct RunIdentity {Show 13 fields
pub run_id: String,
pub binary_version: String,
pub detector_digest: String,
pub config_digest: String,
pub source_kind: String,
pub workload_class: String,
pub backend_requested: String,
pub backend_selected: Option<String>,
pub cache_state: CacheState,
pub daemon_state: DaemonState,
pub scanner_threads: usize,
pub reader_threads: Option<usize>,
pub logical_cpus: usize,
}Expand description
Identity and execution choices required to compare two run records honestly.
Fields§
§run_id: String§binary_version: String§detector_digest: String§config_digest: String§source_kind: String§workload_class: String§backend_requested: String§backend_selected: Option<String>§cache_state: CacheState§daemon_state: DaemonState§scanner_threads: usize§reader_threads: Option<usize>§logical_cpus: usizeImplementations§
Source§impl RunIdentity
impl RunIdentity
Sourcepub fn new(
binary_version: impl Into<String>,
detector_digest: impl Into<String>,
config_digest: impl Into<String>,
source_kind: impl Into<String>,
workload_class: impl Into<String>,
backend_requested: impl Into<String>,
) -> Self
pub fn new( binary_version: impl Into<String>, detector_digest: impl Into<String>, config_digest: impl Into<String>, source_kind: impl Into<String>, workload_class: impl Into<String>, backend_requested: impl Into<String>, ) -> Self
Construct a run identity with a process-unique identifier and explicit state.
Trait Implementations§
Source§impl Clone for RunIdentity
impl Clone for RunIdentity
Source§fn clone(&self) -> RunIdentity
fn clone(&self) -> RunIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RunIdentity
impl Debug for RunIdentity
Source§impl<'de> Deserialize<'de> for RunIdentity
impl<'de> Deserialize<'de> for RunIdentity
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
impl Eq for RunIdentity
Source§impl PartialEq for RunIdentity
impl PartialEq for RunIdentity
Source§impl Serialize for RunIdentity
impl Serialize for RunIdentity
impl StructuralPartialEq for RunIdentity
Auto Trait Implementations§
impl Freeze for RunIdentity
impl RefUnwindSafe for RunIdentity
impl Send for RunIdentity
impl Sync for RunIdentity
impl Unpin for RunIdentity
impl UnsafeUnpin for RunIdentity
impl UnwindSafe for RunIdentity
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