pub struct PolicyLayerCapture {
pub run_id: String,
pub policy_layer_ndjson: Vec<u8>,
pub capability_surface: CapabilitySurface,
pub events: Vec<PolicyLayerEvent>,
}Fields§
§run_id: String§policy_layer_ndjson: Vec<u8>§capability_surface: CapabilitySurface§events: Vec<PolicyLayerEvent>Implementations§
Source§impl PolicyLayerCapture
impl PolicyLayerCapture
pub fn from_decision_ndjson( run_id: impl Into<String>, ndjson: &[u8], ) -> Result<PolicyLayerCapture, PolicyLayerError>
Sourcepub fn apply_to_archive(
self,
archive: &mut RunnerSpikeArchive,
) -> Result<(), PolicyLayerError>
pub fn apply_to_archive( self, archive: &mut RunnerSpikeArchive, ) -> Result<(), PolicyLayerError>
Apply this policy capture to the archive.
Must be called after any kernel-layer capture has been applied:
kernel_event_count is read from archive.kernel_layer_ndjson at apply
time. Calling this on an archive with no kernel events marks the
correlation report partial with policy_events_without_kernel_events.
Trait Implementations§
Source§impl Clone for PolicyLayerCapture
impl Clone for PolicyLayerCapture
Source§fn clone(&self) -> PolicyLayerCapture
fn clone(&self) -> PolicyLayerCapture
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 PolicyLayerCapture
impl Debug for PolicyLayerCapture
Source§impl PartialEq for PolicyLayerCapture
impl PartialEq for PolicyLayerCapture
Source§fn eq(&self, other: &PolicyLayerCapture) -> bool
fn eq(&self, other: &PolicyLayerCapture) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PolicyLayerCapture
impl StructuralPartialEq for PolicyLayerCapture
Auto Trait Implementations§
impl Freeze for PolicyLayerCapture
impl RefUnwindSafe for PolicyLayerCapture
impl Send for PolicyLayerCapture
impl Sync for PolicyLayerCapture
impl Unpin for PolicyLayerCapture
impl UnsafeUnpin for PolicyLayerCapture
impl UnwindSafe for PolicyLayerCapture
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.