pub enum HalError {
NotConnected,
ConnectionFailed(String),
AlreadyConnected,
NotStreaming,
StreamError(String),
InvalidConfig(String),
DeviceError(String),
Timeout,
ChannelNotFound(String),
}Expand description
Errors that can occur when working with EEG devices
Variants§
NotConnected
Device is not connected
ConnectionFailed(String)
Device connection failed
AlreadyConnected
Device is already connected
NotStreaming
Streaming is not active
StreamError(String)
Streaming failed to start
InvalidConfig(String)
Invalid configuration
DeviceError(String)
Device-specific error
Timeout
Timeout waiting for data
ChannelNotFound(String)
Channel not found
Trait Implementations§
Source§impl Error for HalError
impl Error for HalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl Eq for HalError
impl StructuralPartialEq for HalError
Auto Trait Implementations§
impl Freeze for HalError
impl RefUnwindSafe for HalError
impl Send for HalError
impl Sync for HalError
impl Unpin for HalError
impl UnsafeUnpin for HalError
impl UnwindSafe for HalError
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