pub struct Bundle<'a> {
pub timetag: u64,
pub packets: Vec<OscPacket<'a>>,
}Expand description
OSC Bundle as defined in OSC 1.0 specification
Bundles can contain both messages and nested bundles, allowing for hierarchical organization of OSC data with precise timing control.
Fields§
§timetag: u64OSC time tag (64-bit NTP timestamp)
packets: Vec<OscPacket<'a>>Packets contained in the bundle (messages and/or nested bundles)
Implementations§
Source§impl<'a> Bundle<'a>
impl<'a> Bundle<'a>
Sourcepub fn with_messages(timetag: u64, messages: Vec<Message<'a>>) -> Bundle<'a>
pub fn with_messages(timetag: u64, messages: Vec<Message<'a>>) -> Bundle<'a>
Create a new OSC bundle with only messages (convenience method)
Sourcepub fn add_message(&mut self, message: Message<'a>)
pub fn add_message(&mut self, message: Message<'a>)
Add a message to the bundle
Sourcepub fn add_bundle(&mut self, bundle: Bundle<'a>)
pub fn add_bundle(&mut self, bundle: Bundle<'a>)
Add a nested bundle to the bundle
Trait Implementations§
impl<'a> StructuralPartialEq for Bundle<'a>
Auto Trait Implementations§
impl<'a> Freeze for Bundle<'a>
impl<'a> RefUnwindSafe for Bundle<'a>
impl<'a> Send for Bundle<'a>
impl<'a> Sync for Bundle<'a>
impl<'a> Unpin for Bundle<'a>
impl<'a> UnwindSafe for Bundle<'a>
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