pub struct ServerList { /* private fields */ }Expand description
A server-side list container capable of receiving changes from the UI thread. Right now it’s quite dumb since it always receives the full list.
Embedded by the generated property block of a list class; the items are the server objects the batch names.
Implementations§
Source§impl ServerList
impl ServerList
pub fn new() -> Self
Sourcepub fn list(&self) -> Vec<Rc<dyn IServerObject>>
pub fn list(&self) -> Vec<Rc<dyn IServerObject>>
A snapshot of the items.
pub fn count(&self) -> usize
Sourcepub fn items<T: IServerObject>(&self) -> Vec<Rc<T>>
pub fn items<T: IServerObject>(&self) -> Vec<Rc<T>>
The items viewed as their concrete type. Panics if an item is of another type.
Sourcepub fn deserialize_changes_core(
&self,
reader: &mut BatchStreamReader<'_>,
compositor: Option<&Rc<ServerCompositor>>,
)
pub fn deserialize_changes_core( &self, reader: &mut BatchStreamReader<'_>, compositor: Option<&Rc<ServerCompositor>>, )
Reads the list part of the changes of the object. The changes of the base class follow.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ServerList
impl !RefUnwindSafe for ServerList
impl !Send for ServerList
impl !Sync for ServerList
impl !UnwindSafe for ServerList
impl Unpin for ServerList
impl UnsafeUnpin for ServerList
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