Skip to main content

ServerValueChange

Struct ServerValueChange 

Source
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: bool

Whether 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

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
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.