pub enum TestPatternError {
Incomplete,
NotReady,
Decode(Error),
Mismatch {
index: usize,
expected: Box<Sample>,
actual: Box<Sample>,
},
}Expand description
A failure while reading the test pattern.
Variants§
Incomplete
The buffer holds no complete sample yet.
NotReady
The handshake has not reached this stage.
Decode(Error)
The codec refused the bytes.
Mismatch
A sample did not match the pattern.
liblsl reports The received test-pattern samples do not match the specification. The protocol formats are likely incompatible.
(src/data_receiver.cpp:294).
Trait Implementations§
Source§impl Clone for TestPatternError
impl Clone for TestPatternError
Source§impl Debug for TestPatternError
impl Debug for TestPatternError
Source§impl PartialEq for TestPatternError
impl PartialEq for TestPatternError
impl StructuralPartialEq for TestPatternError
Auto Trait Implementations§
impl Forget for TestPatternError
impl Freeze for TestPatternError
impl Move for TestPatternError
impl RefUnwindSafe for TestPatternError
impl Send for TestPatternError
impl Sync for TestPatternError
impl Unpin for TestPatternError
impl UnsafeUnpin for TestPatternError
impl UnwindSafe for TestPatternError
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