pub struct GlowRoot {
pub elements: Vec<GlowElement>,
pub invocation_results: Vec<InvocationResult>,
pub streams: Vec<StreamEntry>,
}Expand description
Glow root element - the top-level container for Ember+ messages.
Fields§
§elements: Vec<GlowElement>Root elements (can be a mix of nodes, parameters, etc.)
invocation_results: Vec<InvocationResult>Invocation results
streams: Vec<StreamEntry>Stream entries
Implementations§
Source§impl GlowRoot
impl GlowRoot
Sourcepub fn with_elements(elements: Vec<GlowElement>) -> Self
pub fn with_elements(elements: Vec<GlowElement>) -> Self
Create a root with elements.
Sourcepub fn get_directory() -> Self
pub fn get_directory() -> Self
Create a root with a single command for getting the root directory.
Sourcepub fn add_element(&mut self, element: GlowElement)
pub fn add_element(&mut self, element: GlowElement)
Add an element.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlowRoot
impl RefUnwindSafe for GlowRoot
impl Send for GlowRoot
impl Sync for GlowRoot
impl Unpin for GlowRoot
impl UnsafeUnpin for GlowRoot
impl UnwindSafe for GlowRoot
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