Skip to main content

ValidExt

Trait ValidExt 

Source
pub trait ValidExt {
    // Required methods
    fn valid<T: Send + Sync + 'static>(&self) -> &T;
    fn take_valid<T: Send + Sync + 'static>(&mut self) -> Option<T>;
}
Expand description

Access DTO stored by ValidateHook.

Required Methods§

Source

fn valid<T: Send + Sync + 'static>(&self) -> &T

Source

fn take_valid<T: Send + Sync + 'static>(&mut self) -> Option<T>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ValidExt for Request

Source§

fn valid<T: Send + Sync + 'static>(&self) -> &T

Source§

fn take_valid<T: Send + Sync + 'static>(&mut self) -> Option<T>

Implementors§