pub enum Event {
Packet {
mono_ns: i64,
packet: Arc<Packet>,
},
DecodeError {
mono_ns: i64,
characteristic: Characteristic,
error: ParseError,
},
SequenceGap {
mono_ns: i64,
expected: u8,
received: u8,
},
CounterRestart {
mono_ns: i64,
},
OffHead {
mono_ns: i64,
},
OnHead {
mono_ns: i64,
},
PowerOffWarning {
mono_ns: i64,
},
Disconnected {
mono_ns: i64,
},
Reconnecting {
mono_ns: i64,
attempt: u32,
},
Reconnected {
mono_ns: i64,
},
ReconnectFailed {
mono_ns: i64,
},
}Expand description
A decoded event delivered to subscribers.
Variants§
Packet
A decoded packet with its host arrival time.
DecodeError
A notification that could not be decoded. It is still in the raw record.
SequenceGap
EEG frames are missing: the sequence counter jumped.
Fields
CounterRestart
The EEG sequence counter restarted at 0 right after a stream-start command (not data loss).
OffHead
The band reports no electrode contact; it powers itself off about 33 s later.
OnHead
Contact restored after Event::OffHead.
PowerOffWarning
Status message seen seconds before the band powered itself off (inferred meaning).
Disconnected
The Bluetooth link was lost or closed.
Reconnecting
A reconnection attempt is starting.
Fields
Reconnected
The link is back and the start sequence has been sent again. Data after this belongs to a new segment.
ReconnectFailed
Reconnection was abandoned after the configured time.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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