pub struct ServerResourceRef<T: ?Sized> {
pub value: Rc<T>,
pub resource: Option<Rc<dyn IServerRenderResource>>,
}Expand description
A reference-typed property value of a server object that may be a server-side render resource (a brush or a transform): the value as its media interface, and the render resource behind it when it is one.
Fields§
§value: Rc<T>§resource: Option<Rc<dyn IServerRenderResource>>Implementations§
Source§impl<T: ?Sized> ServerResourceRef<T>
impl<T: ?Sized> ServerResourceRef<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for ServerResourceRef<T>
impl<T> !Send for ServerResourceRef<T>
impl<T> !Sync for ServerResourceRef<T>
impl<T> !UnwindSafe for ServerResourceRef<T>
impl<T> Freeze for ServerResourceRef<T>
impl<T> Unpin for ServerResourceRef<T>
impl<T> UnsafeUnpin for ServerResourceRef<T>
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