pub struct PropertyResolutionServiceHandle { /* private fields */ }Expand description
Cloneable, type-erased property service registered by the host.
Implementations§
Source§impl PropertyResolutionServiceHandle
impl PropertyResolutionServiceHandle
Sourcepub fn new(service: Arc<dyn PropertyResolutionService>) -> Self
pub fn new(service: Arc<dyn PropertyResolutionService>) -> Self
Wraps a trusted service for use outside an evidence session.
Sourcepub fn resolve(
&self,
request: &PropertyRequest,
) -> Result<PropertyResolution, PropertyResolutionError>
pub fn resolve( &self, request: &PropertyRequest, ) -> Result<PropertyResolution, PropertyResolutionError>
Resolves and validates request binding and exact provenance.
A PropertyResolutionError::UnreadableValue is an answer too: it
is bound to this very request and its evidence checked like a
present value’s.
Sourcepub fn enumerate(
&self,
request: &PropertyEnumerationRequest,
) -> Result<PropertyEnumeration, PropertyResolutionError>
pub fn enumerate( &self, request: &PropertyEnumerationRequest, ) -> Result<PropertyEnumeration, PropertyResolutionError>
Enumerates and validates request binding and exact provenance.
The enumeration’s own constructor already checked every property against the request; this binds the answer to this very request.
Trait Implementations§
Source§impl SnapshotBoundService for PropertyResolutionServiceHandle
impl SnapshotBoundService for PropertyResolutionServiceHandle
Source§fn source_snapshots(&self) -> &[SourceSnapshot]
fn source_snapshots(&self) -> &[SourceSnapshot]
Exact source snapshots used to construct this service.
Auto Trait Implementations§
impl !RefUnwindSafe for PropertyResolutionServiceHandle
impl !UnwindSafe for PropertyResolutionServiceHandle
impl Freeze for PropertyResolutionServiceHandle
impl Send for PropertyResolutionServiceHandle
impl Sync for PropertyResolutionServiceHandle
impl Unpin for PropertyResolutionServiceHandle
impl UnsafeUnpin for PropertyResolutionServiceHandle
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