pub struct ExceptionValidationPlugin;Expand description
Validates properties that report errors by failing in their setter.
Trait Implementations§
Source§impl IDataValidationPlugin for ExceptionValidationPlugin
impl IDataValidationPlugin for ExceptionValidationPlugin
Source§fn match_(&self, _reference: &WeakValue, _member_name: &str) -> bool
fn match_(&self, _reference: &WeakValue, _member_name: &str) -> bool
Checks whether this plugin can handle data validation on the specified
object.
Source§fn start(
&self,
_reference: &WeakValue,
_property_name: &str,
inner: Rc<dyn IPropertyAccessor>,
) -> Rc<dyn IPropertyAccessor>
fn start( &self, _reference: &WeakValue, _property_name: &str, inner: Rc<dyn IPropertyAccessor>, ) -> Rc<dyn IPropertyAccessor>
Starts monitoring the data validation state of a property on an
object, wrapping
inner.Auto Trait Implementations§
impl Freeze for ExceptionValidationPlugin
impl RefUnwindSafe for ExceptionValidationPlugin
impl Send for ExceptionValidationPlugin
impl Sync for ExceptionValidationPlugin
impl Unpin for ExceptionValidationPlugin
impl UnsafeUnpin for ExceptionValidationPlugin
impl UnwindSafe for ExceptionValidationPlugin
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more