pub struct ServerRenderResource { /* private fields */ }Expand description
The base of the animatable server-side render resources (upstream
ServerRenderResource, a ServerObject), as a part the resource classes
embed: the animation support of the server object, the resource core and
the handle of the object as a render resource.
Implementations§
Source§impl ServerRenderResource
impl ServerRenderResource
Sourcepub fn new(
compositor: &Rc<ServerCompositor>,
owner: Weak<dyn IAnimatedServerObject>,
this: Weak<dyn IServerRenderResource>,
) -> Self
pub fn new( compositor: &Rc<ServerCompositor>, owner: Weak<dyn IAnimatedServerObject>, this: Weak<dyn IServerRenderResource>, ) -> Self
owner and this are the object that embeds the part.
Sourcepub fn object(&self) -> &ServerObject
pub fn object(&self) -> &ServerObject
The embedded ServerObject.
pub fn compositor(&self) -> Option<Rc<ServerCompositor>>
pub fn core(&self) -> &ServerRenderResourceCore
pub fn is_disposed(&self) -> bool
pub fn as_render_resource_rc(&self) -> Option<Rc<dyn IServerRenderResource>>
Auto Trait Implementations§
impl !Freeze for ServerRenderResource
impl !RefUnwindSafe for ServerRenderResource
impl !Send for ServerRenderResource
impl !Sync for ServerRenderResource
impl !UnwindSafe for ServerRenderResource
impl Unpin for ServerRenderResource
impl UnsafeUnpin for ServerRenderResource
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