pub struct IrBundle {
pub timetag: IrTimetag,
pub elements: Vec<IrBundleElement>,
}Expand description
OSC Bundle structure supporting nested bundles with timetags. Available with OSC 1.0+ support.
Fields§
§timetag: IrTimetagWhen this bundle should be executed
elements: Vec<IrBundleElement>Elements contained in this bundle (messages or nested bundles)
Implementations§
Source§impl IrBundle
impl IrBundle
Sourcepub fn add_message(&mut self, message: IrValue)
pub fn add_message(&mut self, message: IrValue)
Adds a message to this bundle
Sourcepub fn add_bundle(&mut self, bundle: IrBundle)
pub fn add_bundle(&mut self, bundle: IrBundle)
Adds a nested bundle to this bundle
Sourcepub fn add_element(&mut self, element: IrBundleElement)
pub fn add_element(&mut self, element: IrBundleElement)
Adds an element to this bundle
Sourcepub fn is_immediate(&self) -> bool
pub fn is_immediate(&self) -> bool
Returns true if this bundle should be executed immediately
Trait Implementations§
Source§impl From<IrBundle> for IrBundleElement
Available on crate feature osc10 only.
impl From<IrBundle> for IrBundleElement
Available on crate feature
osc10 only.impl StructuralPartialEq for IrBundle
Auto Trait Implementations§
impl Freeze for IrBundle
impl RefUnwindSafe for IrBundle
impl Send for IrBundle
impl Sync for IrBundle
impl Unpin for IrBundle
impl UnwindSafe for IrBundle
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