pub struct State<Validator, ErrorHandler> {
pub validator: Validator,
pub error_handler: ErrorHandler,
}
Expand description
The layer state.
Fields§
§validator: Validator
The validator to use.
error_handler: ErrorHandler
The error handler to use.
Trait Implementations§
Auto Trait Implementations§
impl<Validator, ErrorHandler> Freeze for State<Validator, ErrorHandler>
impl<Validator, ErrorHandler> RefUnwindSafe for State<Validator, ErrorHandler>where
Validator: RefUnwindSafe,
ErrorHandler: RefUnwindSafe,
impl<Validator, ErrorHandler> Send for State<Validator, ErrorHandler>
impl<Validator, ErrorHandler> Sync for State<Validator, ErrorHandler>
impl<Validator, ErrorHandler> Unpin for State<Validator, ErrorHandler>
impl<Validator, ErrorHandler> UnwindSafe for State<Validator, ErrorHandler>where
Validator: UnwindSafe,
ErrorHandler: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more