#[non_exhaustive]pub enum LoadError {
Json(Error),
UnsupportedVersion {
found: u32,
supported: RangeInclusive<u32>,
},
OtherSymbol,
NeedsHistory,
NotClipboard,
Skipped(Vec<SkippedDrawing>),
}Expand description
Why drawings were not loaded, by DrawingStorage::from_json,
Chart::load_drawings or
Chart::paste_drawings, before any drawing changed.
UnsupportedVersion above supported means a newer release
wrote the data: keep it and update. Json means damaged data.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Json(Error)
The text is not valid JSON, or its version, symbol, timeframe or metadata is missing or invalid.
UnsupportedVersion
The storage version is not one this release reads.
Fields
supported: RangeInclusive<u32>The versions this release reads.
OtherSymbol
The drawings belong to another symbol than the chart’s.
NeedsHistory
The chart has no bars to place the pasted anchors on; paste once history has loaded.
NotClipboard
The pasted text is not drawing clipboard text from
Chart::copy_selected_drawings.
Skipped(Vec<SkippedDrawing>)
Drawings that could not be read, where every drawing is needed: a paste, or a document that automatic storage then never writes over.
Trait Implementations§
Source§impl Error for LoadError
impl Error for LoadError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for LoadError
impl !UnwindSafe for LoadError
impl Freeze for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnsafeUnpin for LoadError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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