pub struct KernelTraceLink {
pub trace_id: String,
pub mode: TraceMode,
pub location: String,
}Expand description
Link to kernel trace for replay/audit
Fields§
§trace_id: StringTrace ID
mode: TraceModeWhether this is for replay or audit-only
location: StringURL or path to trace data
Implementations§
Source§impl KernelTraceLink
impl KernelTraceLink
Sourcepub fn audit_only(trace_id: impl Into<String>) -> Self
pub fn audit_only(trace_id: impl Into<String>) -> Self
Create audit-only trace link
Sourcepub fn replayable(
trace_id: impl Into<String>,
location: impl Into<String>,
) -> Self
pub fn replayable( trace_id: impl Into<String>, location: impl Into<String>, ) -> Self
Create replayable trace link
Sourcepub fn is_replayable(&self) -> bool
pub fn is_replayable(&self) -> bool
Check if this trace supports replay
Trait Implementations§
Source§impl Clone for KernelTraceLink
impl Clone for KernelTraceLink
Source§fn clone(&self) -> KernelTraceLink
fn clone(&self) -> KernelTraceLink
Returns a duplicate of the value. Read more
1.0.0 · 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 KernelTraceLink
impl Debug for KernelTraceLink
Source§impl Default for KernelTraceLink
impl Default for KernelTraceLink
Source§impl<'de> Deserialize<'de> for KernelTraceLink
impl<'de> Deserialize<'de> for KernelTraceLink
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 KernelTraceLink
impl RefUnwindSafe for KernelTraceLink
impl Send for KernelTraceLink
impl Sync for KernelTraceLink
impl Unpin for KernelTraceLink
impl UnsafeUnpin for KernelTraceLink
impl UnwindSafe for KernelTraceLink
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