pub struct AirRefusal { /* private fields */ }Expand description
Station air refused in one surface’s own words: the field to blame, as that surface locates
it (Self::path), and the message (Self::message).
Every surface states a refusal of the same air one way. Air that cannot exist reads
"<humidity> = <h> at <temperature> and <pressure>: no such air exists: ...", naming the
three readings that together are impossible; a humidity outside the sensor band reads
"<humidity> = <h>: relative humidity must be a percent from 0 to 100 (...)". Built by
AtmosphereError::refusal_in.
Implementations§
Source§impl AirRefusal
impl AirRefusal
Sourcepub fn reason(&self) -> AtmosphereErrorReason
pub fn reason(&self) -> AtmosphereErrorReason
Why the air was refused.
Sourcepub fn path(&self) -> &str
pub fn path(&self) -> &str
Where the reading to blame sits in the surface’s input, as the surface’s
AirSpelling locates it.
Trait Implementations§
Source§impl Clone for AirRefusal
impl Clone for AirRefusal
Source§fn clone(&self) -> AirRefusal
fn clone(&self) -> AirRefusal
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 moreSource§impl Debug for AirRefusal
impl Debug for AirRefusal
Source§impl Display for AirRefusal
impl Display for AirRefusal
Source§impl Error for AirRefusal
impl Error for AirRefusal
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 AirRefusal
impl PartialEq for AirRefusal
impl Eq for AirRefusal
impl StructuralPartialEq for AirRefusal
Auto Trait Implementations§
impl Freeze for AirRefusal
impl RefUnwindSafe for AirRefusal
impl Send for AirRefusal
impl Sync for AirRefusal
impl Unpin for AirRefusal
impl UnwindSafe for AirRefusal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.