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

Methods

impl Packet
[src]

[src]

A recursive function that unfolds the packet into the end of the given buffer of messages.

Important traits for Vec<u8>
[src]

Convert the Packet into a Vec containing all Messages contained within.

This uses the unfold method internally.

Trait Implementations

impl Clone for Packet
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Packet
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Packet
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl From<Message> for Packet
[src]

[src]

Performs the conversion.

impl From<Bundle> for Packet
[src]

[src]

Performs the conversion.

impl From<OscPacket> for Packet
[src]

[src]

Performs the conversion.

impl<A> From<(A, Vec<Type>)> for Packet where
    A: Into<String>, 
[src]

[src]

Performs the conversion.

impl Into<OscPacket> for Packet
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Packet

impl Sync for Packet