pub struct ServerValueChange<'a> {
pub equal: bool,
pub old_resource: Option<Rc<dyn IServerRenderResource>>,
pub new_resource: Option<Rc<dyn IServerRenderResource>>,
pub assign: &'a mut dyn FnMut(),
}Expand description
One assignment of a property field, in the form SetValue(prop, ref field, value) takes it upstream: the class decides what else happens
around the assignment.
Fields§
§equal: boolWhether the new value equals the current one.
old_resource: Option<Rc<dyn IServerRenderResource>>The render resource behind the current value, if it is one.
new_resource: Option<Rc<dyn IServerRenderResource>>The render resource behind the new value, if it is one.
assign: &'a mut dyn FnMut()Performs field = value.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ServerValueChange<'a>
impl<'a> !Send for ServerValueChange<'a>
impl<'a> !Sync for ServerValueChange<'a>
impl<'a> !UnwindSafe for ServerValueChange<'a>
impl<'a> Freeze for ServerValueChange<'a>
impl<'a> Unpin for ServerValueChange<'a>
impl<'a> UnsafeUnpin for ServerValueChange<'a>
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