pub trait OperatorTrail: Sync {
// Required methods
fn record(
&self,
build: impl FnOnce(Actor, ClientContext) -> AuditRecord + Send,
) -> impl Future<Output = ()> + Send;
fn notify(
&self,
user: &AdminUser,
change: AdminCredentialChange,
previous_recipient: Option<String>,
) -> impl Future<Output = ()> + Send;
}Expand description
Where one surface’s record of an operator change goes.
The futures are Send because the web admin awaits them inside an axum
handler.
Required Methods§
Sourcefn record(
&self,
build: impl FnOnce(Actor, ClientContext) -> AuditRecord + Send,
) -> impl Future<Output = ()> + Send
fn record( &self, build: impl FnOnce(Actor, ClientContext) -> AuditRecord + Send, ) -> impl Future<Output = ()> + Send
Writes one audit row, built from this surface’s actor and client.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".