pub struct SimpleServerRenderResource { /* private fields */ }Expand description
The base of the server-side render resources that are not animatable
(upstream SimpleServerRenderResource), as a part the resource classes
embed: the compositor, the resource core and the handle of the object as
a render resource.
Implementations§
Source§impl SimpleServerRenderResource
impl SimpleServerRenderResource
Sourcepub fn new(
compositor: &Rc<ServerCompositor>,
this: Weak<dyn IServerRenderResource>,
) -> Self
pub fn new( compositor: &Rc<ServerCompositor>, this: Weak<dyn IServerRenderResource>, ) -> Self
this is the object that embeds the part.
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 SimpleServerRenderResource
impl !RefUnwindSafe for SimpleServerRenderResource
impl !Send for SimpleServerRenderResource
impl !Sync for SimpleServerRenderResource
impl !UnwindSafe for SimpleServerRenderResource
impl Unpin for SimpleServerRenderResource
impl UnsafeUnpin for SimpleServerRenderResource
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