[−][src]Enum lsl::ChannelFormat
Data format of a channel (each transmitted sample holds an array of channels).
Variants
For up to 24-bit precision measurements in the appropriate physical unit (e.g., microvolts). Integers from -16777216 to 16777216 are represented accurately.
For universal numeric data as long as permitted by network & disk budget. The largest representable integer is 53-bit.
For variable-length strings or data blobs, such as video frames, complex event descriptions, etc.
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.
For very high rate signals (40Khz+) such as consumer-grade audio (for professional audio, float is recommended).
For binary signals or other coded data. Not recommended for encoding string data.
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.
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]
fn clone(&self) -> ChannelFormat
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn eq(&self, other: &ChannelFormat) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ChannelFormat
[src]
impl StructuralPartialEq for ChannelFormat
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChannelFormat
impl Send for ChannelFormat
impl Sync for ChannelFormat
impl Unpin for ChannelFormat
impl UnwindSafe for ChannelFormat
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,