[][src]Enum nannou_osc::Type

pub enum Type {
    Int(i32),
    Float(f32),
    String(String),
    Blob(Vec<u8>),
    Time(u32u32),
    Long(i64),
    Double(f64),
    Char(char),
    Color(OscColor),
    Midi(OscMidiMessage),
    Bool(bool),
    Nil,
    Inf,
}

see OSC Type Tag String: OSC Spec. 1.0 padding: zero bytes (n*4)

Variants

Int(i32)
Float(f32)
String(String)
Blob(Vec<u8>)
Time(u32u32)
Long(i64)
Double(f64)
Char(char)
Color(OscColor)
Bool(bool)
Nil
Inf

Methods

impl OscType[src]

pub fn time(self) -> Option<(u32, u32)>[src]

impl OscType[src]

pub fn int(self) -> Option<i32>[src]

impl OscType[src]

pub fn float(self) -> Option<f32>[src]

impl OscType[src]

pub fn string(self) -> Option<String>[src]

impl OscType[src]

pub fn blob(self) -> Option<Vec<u8>>[src]

impl OscType[src]

pub fn long(self) -> Option<i64>[src]

impl OscType[src]

pub fn double(self) -> Option<f64>[src]

impl OscType[src]

pub fn char(self) -> Option<char>[src]

impl OscType[src]

pub fn color(self) -> Option<OscColor>[src]

impl OscType[src]

impl OscType[src]

pub fn bool(self) -> Option<bool>[src]

Trait Implementations

impl Clone for OscType[src]

impl Debug for OscType[src]

impl<'a> From<&'a str> for OscType[src]

impl From<(u32, u32)> for OscType[src]

impl From<OscColor> for OscType[src]

impl From<OscMidiMessage> for OscType[src]

impl From<String> for OscType[src]

impl From<Vec<u8>> for OscType[src]

impl From<bool> for OscType[src]

impl From<char> for OscType[src]

impl From<f32> for OscType[src]

impl From<f64> for OscType[src]

impl From<i32> for OscType[src]

impl From<i64> for OscType[src]

impl PartialEq<OscType> for OscType[src]

impl StructuralPartialEq for OscType[src]

Auto Trait Implementations

impl RefUnwindSafe for OscType

impl Send for OscType

impl Sync for OscType

impl Unpin for OscType

impl UnwindSafe for OscType

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.