Enum WeatherObservationError
pub enum WeatherObservationError {
EmptyObservationId,
EmptyObservationSource,
}Expand description
Errors returned by weather observation constructors.
Variants§
EmptyObservationId
The observation identifier was empty after trimming whitespace.
EmptyObservationSource
The observation source text was empty after trimming whitespace.
Trait Implementations§
§impl Clone for WeatherObservationError
impl Clone for WeatherObservationError
§fn clone(&self) -> WeatherObservationError
fn clone(&self) -> WeatherObservationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for WeatherObservationError
impl Debug for WeatherObservationError
§impl Display for WeatherObservationError
impl Display for WeatherObservationError
§impl Error for WeatherObservationError
impl Error for WeatherObservationError
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()
§impl PartialEq for WeatherObservationError
impl PartialEq for WeatherObservationError
impl Copy for WeatherObservationError
impl Eq for WeatherObservationError
impl StructuralPartialEq for WeatherObservationError
Auto Trait Implementations§
impl Freeze for WeatherObservationError
impl RefUnwindSafe for WeatherObservationError
impl Send for WeatherObservationError
impl Sync for WeatherObservationError
impl Unpin for WeatherObservationError
impl UnsafeUnpin for WeatherObservationError
impl UnwindSafe for WeatherObservationError
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