pub enum BatchResource<T: ?Sized> {
Value(Rc<T>),
Server(ServerObjectId),
}Expand description
A reference-typed property value that is either sent as it is (an
immutable brush, an immutable transform) or names a server object (the
server-side counterpart of a mutable brush): what GetServer yields for
a compositor.
Variants§
Value(Rc<T>)
Server(ServerObjectId)
Trait Implementations§
Auto Trait Implementations§
impl<T> !Send for BatchResource<T>
impl<T> !Sync for BatchResource<T>
impl<T> Freeze for BatchResource<T>
impl<T> RefUnwindSafe for BatchResource<T>
impl<T> Unpin for BatchResource<T>
impl<T> UnsafeUnpin for BatchResource<T>
impl<T> UnwindSafe for BatchResource<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