pub trait Guard {
// Required method
fn check(
&self,
ctx: &Context<'_>,
) -> impl Future<Output = Result<()>> + Send;
}
Expand description
Field guard
Guard is a pre-condition for a field that is resolved if Ok(())
is
returned, otherwise an error is returned.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.