pub enum ProximityError {
Unavailable,
NoBody,
InvalidMeasurement,
EvidenceFidelityMismatch,
SameObject,
UnsupportedProjection,
}Expand description
Why a proximity measurement could not be produced.
Variants§
The adapter holds no measurable geometry for an object.
NoBody
The object is declared to occupy no material, such as a storey or an
opening. A fact about the object, not a failure to measure it: an
object whose body could not be measured is Self::Unavailable.
InvalidMeasurement
Coordinates or measured quantities are non-finite, negative or incoherent.
EvidenceFidelityMismatch
The evidence’s exactness disagrees with the measured geometry’s fidelity.
SameObject
A body cannot be measured against itself.
UnsupportedProjection
The request’s projection is not measured by this method or service.
Trait Implementations§
Source§impl Clone for ProximityError
impl Clone for ProximityError
impl Copy for ProximityError
Source§impl Debug for ProximityError
impl Debug for ProximityError
Source§impl Display for ProximityError
impl Display for ProximityError
impl Eq for ProximityError
Source§impl Error for ProximityError
impl Error for ProximityError
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 ProximityError
impl PartialEq for ProximityError
impl StructuralPartialEq for ProximityError
Auto Trait Implementations§
impl Freeze for ProximityError
impl RefUnwindSafe for ProximityError
impl Send for ProximityError
impl Sync for ProximityError
impl Unpin for ProximityError
impl UnsafeUnpin for ProximityError
impl UnwindSafe for ProximityError
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