pub struct NullAuditLogger;Expand description
No-op audit logger (for testing/disabled logging)
Implementations§
Trait Implementations§
Source§impl AuditLogger for NullAuditLogger
impl AuditLogger for NullAuditLogger
Source§fn log_authentication(
&self,
_entity_id: &str,
_success: bool,
_reason: Option<&str>,
)
fn log_authentication( &self, _entity_id: &str, _success: bool, _reason: Option<&str>, )
Log authentication event
Source§fn log_grant(&self, _entity_id: &str, _permission: Permission, _target: &str)
fn log_grant(&self, _entity_id: &str, _permission: Permission, _target: &str)
Log authorization grant
Source§fn log_denial(
&self,
_entity_id: &str,
_permission: &str,
_target: &str,
_reason: &str,
)
fn log_denial( &self, _entity_id: &str, _permission: &str, _target: &str, _reason: &str, )
Log authorization denial
Source§fn log_operation(
&self,
_entity_id: &str,
_operation: &str,
_target: &str,
_success: bool,
)
fn log_operation( &self, _entity_id: &str, _operation: &str, _target: &str, _success: bool, )
Log data operation
Source§fn log_violation(
&self,
_entity_id: &str,
_violation: SecurityViolation,
_details: &str,
)
fn log_violation( &self, _entity_id: &str, _violation: SecurityViolation, _details: &str, )
Log security violation
Source§fn log_cell_event(
&self,
_entity_id: &str,
_cell_id: &str,
_action: &str,
_success: bool,
)
fn log_cell_event( &self, _entity_id: &str, _cell_id: &str, _action: &str, _success: bool, )
Log cell formation event
Source§fn log_key_exchange(&self, _entity_id: &str, _peer_id: &str, _success: bool)
fn log_key_exchange(&self, _entity_id: &str, _peer_id: &str, _success: bool)
Log key exchange event
Source§fn log_session(
&self,
_entity_id: &str,
_session_id: &str,
_action: &str,
_success: bool,
)
fn log_session( &self, _entity_id: &str, _session_id: &str, _action: &str, _success: bool, )
Log session event (create, expire, invalidate)
Source§fn log_encryption(
&self,
_entity_id: &str,
_operation: &str,
_target: &str,
_success: bool,
)
fn log_encryption( &self, _entity_id: &str, _operation: &str, _target: &str, _success: bool, )
Log encryption event
Source§fn entry_count(&self) -> u64
fn entry_count(&self) -> u64
Get the number of entries logged
Source§impl Debug for NullAuditLogger
impl Debug for NullAuditLogger
Source§impl Default for NullAuditLogger
impl Default for NullAuditLogger
Source§fn default() -> NullAuditLogger
fn default() -> NullAuditLogger
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NullAuditLogger
impl RefUnwindSafe for NullAuditLogger
impl Send for NullAuditLogger
impl Sync for NullAuditLogger
impl Unpin for NullAuditLogger
impl UnsafeUnpin for NullAuditLogger
impl UnwindSafe for NullAuditLogger
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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