pub struct ChannelConfig { /* private fields */ }Expand description
Channel configuration for a device
Implementations§
Source§impl ChannelConfig
impl ChannelConfig
pub fn new(channels: Vec<Channel>) -> Self
Sourcepub fn simple(count: usize) -> Self
pub fn simple(count: usize) -> Self
Create a simple configuration with N EEG channels named Ch0, Ch1, etc.
Sourcepub fn muse_athena() -> Self
pub fn muse_athena() -> Self
Create a Muse S Athena-style channel configuration (8-channel EEG)
pub fn channels(&self) -> &[Channel]
pub fn channel_count(&self) -> usize
pub fn eeg_channels(&self) -> impl Iterator<Item = &Channel>
pub fn eeg_channel_count(&self) -> usize
pub fn get_by_name(&self, name: &str) -> Option<&Channel>
pub fn get_by_index(&self, index: usize) -> Option<&Channel>
Trait Implementations§
Source§impl Clone for ChannelConfig
impl Clone for ChannelConfig
Source§fn clone(&self) -> ChannelConfig
fn clone(&self) -> ChannelConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChannelConfig
impl RefUnwindSafe for ChannelConfig
impl Send for ChannelConfig
impl Sync for ChannelConfig
impl Unpin for ChannelConfig
impl UnsafeUnpin for ChannelConfig
impl UnwindSafe for ChannelConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more