pub struct ResolverChain { /* private fields */ }Expand description
Ordered sources. The first that knows wins; a lower source that knows something DIFFERENT is an error, so two paths can never silently produce two identities for one process.
Implementations§
Source§impl ResolverChain
impl ResolverChain
pub fn new() -> Self
pub fn with(self, r: impl SessionResolver + 'static) -> Self
pub fn resolve(&self) -> Result<ResolvedSession>
Sourcepub fn identity(
&self,
ids: &IdentityStore,
tier: BackendKind,
server_ref: &str,
) -> Result<SessionIdentity>
pub fn identity( &self, ids: &IdentityStore, tier: BackendKind, server_ref: &str, ) -> Result<SessionIdentity>
Resolve the session, then its identity for tier on server_ref, with the tier-1 link
recorded. The one entry point a host uses.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ResolverChain
impl !UnwindSafe for ResolverChain
impl Freeze for ResolverChain
impl Send for ResolverChain
impl Sync for ResolverChain
impl Unpin for ResolverChain
impl UnsafeUnpin for ResolverChain
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