Skip to main content

Recorder

Trait Recorder 

Source
pub trait Recorder: Send + Sync {
    // Required method
    fn record(&self, connection: &Connection<'_>) -> Result<(), RecordError>;

    // Provided method
    fn unrecorded(&self, error: &RecordError) { ... }
}
Expand description

Where connection decisions go. An error refuses the connection.

Required Methods§

Source

fn record(&self, connection: &Connection<'_>) -> Result<(), RecordError>

Record one decision.

Provided Methods§

Source

fn unrecorded(&self, error: &RecordError)

Told when record failed. The connection is refused either way; this is where the failure is reported, somewhere other than the audit log that just failed. The default does nothing.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§