[][src]Enum lsl::ChannelFormat

pub enum ChannelFormat {
    Float32,
    Double64,
    String,
    Int32,
    Int16,
    Int8,
    Int64,
    Undefined,
}

Data format of a channel (each transmitted sample holds an array of channels).

Variants

Float32

For up to 24-bit precision measurements in the appropriate physical unit (e.g., microvolts). Integers from -16777216 to 16777216 are represented accurately.

Double64

For universal numeric data as long as permitted by network & disk budget. The largest representable integer is 53-bit.

String

For variable-length strings or data blobs, such as video frames, complex event descriptions, etc.

Int32

For high-rate digitized formats that require 32-bit precision. Depends critically on meta-data to represent meaningful units. Useful for application event codes or other coded data.

Int16

For very high rate signals (40Khz+) such as consumer-grade audio (for professional audio, float is recommended).

Int8

For binary signals or other coded data. Not recommended for encoding string data.

Int64

Note that support for this type is not yet exposed in all languages. Also, some builds of liblsl (e.g., on 32-bit systems) will not be able to send or receive data of this type.

Undefined

Can not be transmitted. This is treated as an error/unknown value when used in conjunction with any of the API methods.

Implementations

impl ChannelFormat[src]

pub fn to_native(&self) -> lsl_channel_format_t[src]

Convert to corresponding native data type.

pub fn from_native(fmt: lsl_channel_format_t) -> ChannelFormat[src]

Convert from the corresponding native data type.

Trait Implementations

impl Clone for ChannelFormat[src]

impl Copy for ChannelFormat[src]

impl Debug for ChannelFormat[src]

impl Display for ChannelFormat[src]

impl Eq for ChannelFormat[src]

impl PartialEq<ChannelFormat> for ChannelFormat[src]

impl StructuralEq for ChannelFormat[src]

impl StructuralPartialEq for ChannelFormat[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> 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> 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.