pub enum VolumeProfileConfigError {
ZeroLookback,
ZeroNumBins,
}Expand description
Invalid VolumeProfileEngine configuration: lookback/num_bins of zero would produce an
empty bin vector (and panic on the first non-flat window in on_bar) or an unbounded lookback
window, so try_new rejects them explicitly (finding 06) rather than silently normalizing.
Variants§
ZeroLookback
lookback was 0; it must be at least 1.
ZeroNumBins
num_bins was 0; it must be at least 1.
Trait Implementations§
Source§impl Clone for VolumeProfileConfigError
impl Clone for VolumeProfileConfigError
Source§fn clone(&self) -> VolumeProfileConfigError
fn clone(&self) -> VolumeProfileConfigError
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 VolumeProfileConfigError
Source§impl Debug for VolumeProfileConfigError
impl Debug for VolumeProfileConfigError
Source§impl Display for VolumeProfileConfigError
impl Display for VolumeProfileConfigError
impl Eq for VolumeProfileConfigError
Source§impl Error for VolumeProfileConfigError
impl Error for VolumeProfileConfigError
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 PartialEq for VolumeProfileConfigError
impl PartialEq for VolumeProfileConfigError
impl StructuralPartialEq for VolumeProfileConfigError
Auto Trait Implementations§
impl Freeze for VolumeProfileConfigError
impl RefUnwindSafe for VolumeProfileConfigError
impl Send for VolumeProfileConfigError
impl Sync for VolumeProfileConfigError
impl Unpin for VolumeProfileConfigError
impl UnsafeUnpin for VolumeProfileConfigError
impl UnwindSafe for VolumeProfileConfigError
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