[][src]Enum sampi::SampiData

pub enum SampiData {
    Null,
    U8Vec(Vec<u8>),
    U16Vec(Vec<u16>),
    U32Vec(Vec<u32>),
    U64Vec(Vec<u64>),
    U128Vec(Vec<u128>),
    I8Vec(Vec<i8>),
    I16Vec(Vec<i16>),
    I32Vec(Vec<i32>),
    I64Vec(Vec<i64>),
    I128Vec(Vec<i128>),
    F32Vec(Vec<f32>),
    F64Vec(Vec<f64>),
    BoolVec(Vec<bool>),
    CharVec(Vec<char>),
    String(String),
    JSON(String),
    StringVec(Vec<String>),
    Bytes(Vec<u8>),
    BSON(Vec<u8>),
    CBOR(Vec<u8>),
    SampiFilter(SampiFilter),
    Sampi(Box<Sampi>),
    SampiVec(Vec<Sampi>),
    SampiRaptorPacket {
        data: Vec<u8>,
        stream_id: u64,
        block_count: u32,
        total_blocks: Option<u32>,
    },
    Array8ByteVec(Vec<[u8; 8]>),
    Array16ByteVec(Vec<[u8; 16]>),
    Array32ByteVec(Vec<[u8; 32]>),
    SignedNumber(i128),
    UnsignedNumber(u128),
}

Variants

Null
U8Vec(Vec<u8>)
U16Vec(Vec<u16>)
U32Vec(Vec<u32>)
U64Vec(Vec<u64>)
U128Vec(Vec<u128>)
I8Vec(Vec<i8>)
I16Vec(Vec<i16>)
I32Vec(Vec<i32>)
I64Vec(Vec<i64>)
I128Vec(Vec<i128>)
F32Vec(Vec<f32>)
F64Vec(Vec<f64>)
BoolVec(Vec<bool>)
CharVec(Vec<char>)
String(String)
JSON(String)
StringVec(Vec<String>)
Bytes(Vec<u8>)
BSON(Vec<u8>)
CBOR(Vec<u8>)
SampiFilter(SampiFilter)
Sampi(Box<Sampi>)
SampiVec(Vec<Sampi>)
SampiRaptorPacket

Fields of SampiRaptorPacket

data: Vec<u8>stream_id: u64block_count: u32total_blocks: Option<u32>
Array8ByteVec(Vec<[u8; 8]>)
Array16ByteVec(Vec<[u8; 16]>)
Array32ByteVec(Vec<[u8; 32]>)
SignedNumber(i128)
UnsignedNumber(u128)

Methods

impl SampiData[src]

pub fn human_readable(&self) -> String[src]

pub fn variant_name(&self) -> String[src]

Trait Implementations

impl Clone for SampiData[src]

impl Debug for SampiData[src]

impl<'de> Deserialize<'de> for SampiData[src]

impl Display for SampiData[src]

impl PartialEq<SampiData> for SampiData[src]

impl Serialize for SampiData[src]

impl StructuralPartialEq for SampiData[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,