Skip to main content

Validate

Trait Validate 

Source
pub trait Validate<L: Canary, P: Copy, R: Copy>: Sized {
    type Range: Range;
    type Probe: Copy;
    type Update;
    type Cleanup;
    type Release;

    // Required method
    fn accept(
        self,
        range: Self::Range,
        release: impl FnOnce(Self::Probe, Self::Update) -> R,
    ) -> Result<Self, Rejection<Self::Cleanup, Self::Release>>;
}
Expand description

Runs direct and multishot accept canaries on an owned ring.

Required Associated Types§

Required Methods§

Source

fn accept( self, range: Self::Range, release: impl FnOnce(Self::Probe, Self::Update) -> R, ) -> Result<Self, Rejection<Self::Cleanup, Self::Release>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§