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§
Sourcefn record(&self, connection: &Connection<'_>) -> Result<(), RecordError>
fn record(&self, connection: &Connection<'_>) -> Result<(), RecordError>
Record one decision.
Provided Methods§
Sourcefn unrecorded(&self, error: &RecordError)
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".