pub trait BaseGuard {
type State: Clone + Copy;
// Required methods
fn acquire() -> Self::State;
fn release(state: Self::State);
}Expand description
A base trait that all guards implement.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".