#[non_exhaustive]pub enum PredictiveEncoderError {
HistoryDepthTooSmall,
NumChannelsTooLarge,
InvalidDeviationThreshold,
}Expand description
Errors that can occur when initializing a PredictiveEncoder.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HistoryDepthTooSmall
history_depth was less than 5 (the minimum window used by the predictor).
NumChannelsTooLarge
num_channels exceeds the u16 channel-ID range used when emitting spikes.
Valid channel indices are 0..=u16::MAX, so at most u16::MAX as usize + 1 channels.
InvalidDeviationThreshold
A deviation threshold was non-finite or negative.
Trait Implementations§
Source§impl Clone for PredictiveEncoderError
impl Clone for PredictiveEncoderError
Source§fn clone(&self) -> PredictiveEncoderError
fn clone(&self) -> PredictiveEncoderError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PredictiveEncoderError
Source§impl Debug for PredictiveEncoderError
impl Debug for PredictiveEncoderError
Source§impl Display for PredictiveEncoderError
impl Display for PredictiveEncoderError
impl Eq for PredictiveEncoderError
Source§impl Error for PredictiveEncoderError
impl Error for PredictiveEncoderError
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()
Source§impl From<PredictiveEncoderError> for EncoderError
impl From<PredictiveEncoderError> for EncoderError
Source§fn from(error: PredictiveEncoderError) -> Self
fn from(error: PredictiveEncoderError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PredictiveEncoderError
impl PartialEq for PredictiveEncoderError
impl StructuralPartialEq for PredictiveEncoderError
Auto Trait Implementations§
impl Freeze for PredictiveEncoderError
impl RefUnwindSafe for PredictiveEncoderError
impl Send for PredictiveEncoderError
impl Sync for PredictiveEncoderError
impl Unpin for PredictiveEncoderError
impl UnsafeUnpin for PredictiveEncoderError
impl UnwindSafe for PredictiveEncoderError
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