pub enum SightError {
UnknownObject(ObjectId),
InvalidRequest(String),
Unavailable(String),
InvalidEvidence(String),
}Expand description
Failure to assess a line of sight.
Variants§
UnknownObject(ObjectId)
The service holds no geometry for this object.
InvalidRequest(String)
The request is malformed: a non-finite eye, a negative range, or the target among its own blockers.
The geometry could not be assessed, for example a blocker whose body was not measured or a tessellated target.
InvalidEvidence(String)
The answer does not fit the request: another target, an occluder the request did not send, a witness that is not finite, or a distance whose bounds are reversed.
Trait Implementations§
Source§impl Clone for SightError
impl Clone for SightError
Source§impl Debug for SightError
impl Debug for SightError
Source§impl Display for SightError
impl Display for SightError
impl Eq for SightError
Source§impl Error for SightError
impl Error for SightError
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 SightError
impl PartialEq for SightError
impl StructuralPartialEq for SightError
Auto Trait Implementations§
impl Freeze for SightError
impl RefUnwindSafe for SightError
impl Send for SightError
impl Sync for SightError
impl Unpin for SightError
impl UnsafeUnpin for SightError
impl UnwindSafe for SightError
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