Struct SopAuditLogger
pub struct SopAuditLogger { /* private fields */ }Implementations§
Source§impl SopAuditLogger
impl SopAuditLogger
pub fn new(memory: Arc<dyn Memory>) -> SopAuditLogger
Sourcepub async fn log_run_start(&self, run: &SopRun) -> Result<(), Error>
pub async fn log_run_start(&self, run: &SopRun) -> Result<(), Error>
Log the start of a new SOP run.
Sourcepub async fn log_step_result(
&self,
run_id: &str,
result: &SopStepResult,
) -> Result<(), Error>
pub async fn log_step_result( &self, run_id: &str, result: &SopStepResult, ) -> Result<(), Error>
Log a step result.
Sourcepub async fn log_suspicious_untrusted(
&self,
source: SopTriggerSource,
topic: Option<&str>,
patterns: &[String],
score: f64,
) -> Result<(), Error>
pub async fn log_suspicious_untrusted( &self, source: SopTriggerSource, topic: Option<&str>, patterns: &[String], score: f64, ) -> Result<(), Error>
Log a suspicious but allowed untrusted SOP event.
Sourcepub async fn log_blocked_unsafe(
&self,
sop_name: Option<&str>,
source: SopTriggerSource,
topic: Option<&str>,
reason: &str,
) -> Result<(), Error>
pub async fn log_blocked_unsafe( &self, sop_name: Option<&str>, source: SopTriggerSource, topic: Option<&str>, reason: &str, ) -> Result<(), Error>
Log a blocked unsafe SOP event.
Sourcepub async fn log_run_complete(&self, run: &SopRun) -> Result<(), Error>
pub async fn log_run_complete(&self, run: &SopRun) -> Result<(), Error>
Log run completion (updates the run record with final state).
Auto Trait Implementations§
impl Freeze for SopAuditLogger
impl !RefUnwindSafe for SopAuditLogger
impl Send for SopAuditLogger
impl Sync for SopAuditLogger
impl Unpin for SopAuditLogger
impl UnsafeUnpin for SopAuditLogger
impl !UnwindSafe for SopAuditLogger
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more