Enum nannou::osc::Packet
[−]
[src]
pub enum Packet { Message(Message), Bundle(Bundle), }
An OSC packet can contain an OSC message or a bundle of nested packets which is called an OSC bundle.
Variants
Message(Message)
Bundle(Bundle)
Methods
impl Packet
[src]
pub fn unfold(self, msgs: &mut Vec<Message>)
[src]
A recursive function that unfolds the packet into the end of the given buffer of messages.
pub fn into_msgs(self) -> Vec<Message>
[src]
Convert the Packet
into a Vec containing all Message
s contained within.
This uses the unfold
method internally.
Trait Implementations
impl Clone for Packet
[src]
fn clone(&self) -> Packet
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Packet
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Packet
[src]
fn eq(&self, __arg_0: &Packet) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Packet) -> bool
[src]
This method tests for !=
.
impl From<Message> for Packet
[src]
impl From<Bundle> for Packet
[src]
impl From<OscPacket> for Packet
[src]
impl<A> From<(A, Vec<Type>)> for Packet where
A: Into<String>,
[src]
A: Into<String>,