pub struct SnapshotServerObject(/* private fields */);Expand description
The server object a reference parameter refers to, held weakly.
Upstream the snapshot holds the server object, and the garbage collector reclaims two animations that refer to each other’s targets. Here the animations of an object hold its instances, and an instance holds its parameters, so a strong reference would form a cycle between two such objects; the snapshot holds the object weakly, as the instance holds its target. The object outlives its disposal while its composition object is alive, so the reference goes dead only once nothing refers to the object any more; a dead reference is read as a parameter without an object.
Implementations§
Source§impl SnapshotServerObject
impl SnapshotServerObject
Sourcepub fn upgrade(&self) -> Option<Rc<dyn IAnimatedServerObject>>
pub fn upgrade(&self) -> Option<Rc<dyn IAnimatedServerObject>>
The server object, while it is alive.
Trait Implementations§
Source§impl IExpressionObject for SnapshotServerObject
impl IExpressionObject for SnapshotServerObject
Source§fn get_property(&self, name: &str) -> ExpressionVariant
fn get_property(&self, name: &str) -> ExpressionVariant
Gets the value of the property with the given name;
Invalid when
there is no such property.Source§fn key(&self) -> ExpressionObjectKey
fn key(&self) -> ExpressionObjectKey
The identity of the object, used to track the objects an expression
depends on (see
ExpressionTrackedObjects). The default is the
address of the object, which is its reference identity for as long as
the object is alive and not moved; an implementation that has a stable
identifier should return that instead.Auto Trait Implementations§
impl !RefUnwindSafe for SnapshotServerObject
impl !Send for SnapshotServerObject
impl !Sync for SnapshotServerObject
impl !UnwindSafe for SnapshotServerObject
impl Freeze for SnapshotServerObject
impl Unpin for SnapshotServerObject
impl UnsafeUnpin for SnapshotServerObject
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