pub struct DerivedRelationshipServiceHandle(/* private fields */);Expand description
Cloneable, type-erased derived-relationship service.
Implementations§
Source§impl DerivedRelationshipServiceHandle
impl DerivedRelationshipServiceHandle
Sourcepub fn new(service: Arc<dyn DerivedRelationshipService>) -> Self
pub fn new(service: Arc<dyn DerivedRelationshipService>) -> Self
Wraps a trusted derived-relationship service.
Sourcepub fn select(
&self,
request: &RelationshipSelectionRequest,
) -> Result<CompleteRelationshipSelection, RelationshipSelectionError>
pub fn select( &self, request: &RelationshipSelectionRequest, ) -> Result<CompleteRelationshipSelection, RelationshipSelectionError>
Derives a selection and validates it as the relationship handle does, and that every evidence locator names the derivation.
§Errors
RelationshipSelectionError::InvalidRequest for an identity that
names no derivation, the provider’s refusal, or a response that is
not bound to the request or does not cite its derivation.
Trait Implementations§
Source§impl SnapshotBoundService for DerivedRelationshipServiceHandle
impl SnapshotBoundService for DerivedRelationshipServiceHandle
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 DerivedRelationshipServiceHandle
impl !UnwindSafe for DerivedRelationshipServiceHandle
impl Freeze for DerivedRelationshipServiceHandle
impl Send for DerivedRelationshipServiceHandle
impl Sync for DerivedRelationshipServiceHandle
impl Unpin for DerivedRelationshipServiceHandle
impl UnsafeUnpin for DerivedRelationshipServiceHandle
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