pub trait Validate<L: Canary, P: Copy>: Sized {
type Probe: Copy;
type Cleanup;
// Required methods
fn support(self) -> Result<Self, Self::Cleanup>;
fn empty(self, probe: Self::Probe) -> Result<Self, Self::Cleanup>;
}Expand description
Validates an owned ring before its resources are exposed to a driver.
Required Associated Types§
Required Methods§
fn support(self) -> Result<Self, Self::Cleanup>
fn empty(self, probe: Self::Probe) -> Result<Self, Self::Cleanup>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".