pub struct SightServiceHandle(/* private fields */);Expand description
Registry handle for a SightService.
Implementations§
Source§impl SightServiceHandle
impl SightServiceHandle
Sourcepub fn new(service: Arc<dyn SightService>) -> Self
pub fn new(service: Arc<dyn SightService>) -> Self
Wraps a trusted line-of-sight service.
Sourcepub fn assess_sight(
&self,
request: &SightRequest,
) -> Result<SightEvidence, SightError>
pub fn assess_sight( &self, request: &SightRequest, ) -> Result<SightEvidence, SightError>
The view of the request’s target.
An answer about another target, naming an occluder the request did not send, or skipping a target that may lie within the range, is refused.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SightServiceHandle
impl !UnwindSafe for SightServiceHandle
impl Freeze for SightServiceHandle
impl Send for SightServiceHandle
impl Sync for SightServiceHandle
impl Unpin for SightServiceHandle
impl UnsafeUnpin for SightServiceHandle
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