pub trait PushPolicy: Send + Sync {
// Required method
fn check(
&self,
repo: &Repository,
pusher: &Pusher,
updates: &[RefUpdate],
) -> Vec<Option<String>>;
}Expand description
Decides, per ref update, whether a push may proceed.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".