pub enum PolarResourceError {
Malformed(String),
Table(PolarError),
}Expand description
Something wrong with a polar resource on the wire.
Variants§
Malformed(String)
The JSON did not have the shape performance.polars’s own schema
requires – a missing required field, a windData entry with no
angleData, or the like.
Table(PolarError)
The shape was right, but the table it described was not –
see [PolarError].
Trait Implementations§
Source§impl Clone for PolarResourceError
impl Clone for PolarResourceError
Source§fn clone(&self) -> PolarResourceError
fn clone(&self) -> PolarResourceError
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 PolarResourceError
impl Debug for PolarResourceError
Source§impl Display for PolarResourceError
impl Display for PolarResourceError
Source§impl Error for PolarResourceError
impl Error for PolarResourceError
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<PolarError> for PolarResourceError
impl From<PolarError> for PolarResourceError
Source§impl PartialEq for PolarResourceError
impl PartialEq for PolarResourceError
Source§fn eq(&self, other: &PolarResourceError) -> bool
fn eq(&self, other: &PolarResourceError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PolarResourceError
Auto Trait Implementations§
impl Freeze for PolarResourceError
impl RefUnwindSafe for PolarResourceError
impl Send for PolarResourceError
impl Sync for PolarResourceError
impl Unpin for PolarResourceError
impl UnsafeUnpin for PolarResourceError
impl UnwindSafe for PolarResourceError
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