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.
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.
Trait Implementations§
Source§impl Clone for PropertyResolutionServiceHandle
impl Clone for PropertyResolutionServiceHandle
Source§fn clone(&self) -> PropertyResolutionServiceHandle
fn clone(&self) -> PropertyResolutionServiceHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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