pub struct AuditConfig {
pub strict: bool,
}Expand description
How the auditor behaves when it cannot write.
Fields§
§strict: boolWhen true, a failed audit write turns the request into a 500 instead of
only logging the error.
Note what this does not buy you: the mutation has already committed by
then, and Storage exposes no transaction spanning both writes, so a
strict failure reports an error for a change that did land. It makes a
hole in the log loud rather than silent — it is not atomicity. Leave it
false (the default) unless a compliance regime prefers a visible
failure to a missing entry.
Implementations§
Source§impl AuditConfig
impl AuditConfig
Sourcepub fn strict() -> Self
pub fn strict() -> Self
Fail the request when an entry cannot be recorded. See the caveat on
AuditConfig::strict.
Trait Implementations§
Source§impl Clone for AuditConfig
impl Clone for AuditConfig
Source§fn clone(&self) -> AuditConfig
fn clone(&self) -> AuditConfig
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 moreimpl Copy for AuditConfig
Source§impl Debug for AuditConfig
impl Debug for AuditConfig
Source§impl Default for AuditConfig
impl Default for AuditConfig
Source§fn default() -> AuditConfig
fn default() -> AuditConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AuditConfig
impl RefUnwindSafe for AuditConfig
impl Send for AuditConfig
impl Sync for AuditConfig
impl Unpin for AuditConfig
impl UnsafeUnpin for AuditConfig
impl UnwindSafe for AuditConfig
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