#[non_exhaustive]pub enum ChartSettingsError {
Timezone(ParseError),
Margins {
top: f32,
bottom: f32,
},
CrosshairWidth(f32),
FontSize(u8),
PriceToBarRatio(f64),
ExecutionSoundVolume(f32),
AlertSoundVolume(f32),
ChartTypeParams {
chart_type: ChartType,
reason: &'static str,
},
}Expand description
Why ChartSettingsState::apply_to_chart left the chart unchanged. Its text is the one
the settings dialog shows.
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.
Timezone(ParseError)
timezone names no time zone this build knows.
Margins
The margins are not finite, are negative or leave no room for prices.
CrosshairWidth(f32)
The crosshair line width is not finite or not above zero.
FontSize(u8)
The axis font size is zero.
PriceToBarRatio(f64)
The locked price-to-bar ratio is not finite or not above zero.
ExecutionSoundVolume(f32)
The trading execution sound volume is outside 0 to 1.
AlertSoundVolume(f32)
The alert sound volume is outside 0 to 1.
ChartTypeParams
The chart type parameters do not fit the chart type.
Trait Implementations§
Source§impl Clone for ChartSettingsError
impl Clone for ChartSettingsError
Source§fn clone(&self) -> ChartSettingsError
fn clone(&self) -> ChartSettingsError
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 moreSource§impl Debug for ChartSettingsError
impl Debug for ChartSettingsError
Source§impl Display for ChartSettingsError
impl Display for ChartSettingsError
Source§impl Error for ChartSettingsError
impl Error for ChartSettingsError
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 ChartSettingsError
impl PartialEq for ChartSettingsError
impl StructuralPartialEq for ChartSettingsError
Auto Trait Implementations§
impl Freeze for ChartSettingsError
impl RefUnwindSafe for ChartSettingsError
impl Send for ChartSettingsError
impl Sync for ChartSettingsError
impl Unpin for ChartSettingsError
impl UnsafeUnpin for ChartSettingsError
impl UnwindSafe for ChartSettingsError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more