pub struct TrustSource { /* private fields */ }Expand description
Whom a peer is accepted as, as a source: the anchors and pins of the moment, changeable under a live binding.
A static source is equal to another holding the same Trust, which is
what keeps two endpoints configured alike on one pooled connection.
Implementations§
Source§impl TrustSource
impl TrustSource
Sourcepub fn from_trust(trust: Trust) -> TrustSource
pub fn from_trust(trust: Trust) -> TrustSource
A source that holds trust and never changes.
Sourcepub fn external(initial: Trust) -> TrustSource
pub fn external(initial: Trust) -> TrustSource
A source driven from outside through TrustSource::update: what
an anchor fetched from an authority, and refreshed, uses.
Sourcepub fn report_failure(&self, reason: impl Into<String>)
pub fn report_failure(&self, reason: impl Into<String>)
Reports a failed refresh from an external source; the trust in service is unchanged.
Sourcepub fn events(&self) -> IdentityEvents
pub fn events(&self) -> IdentityEvents
The event stream of this source.
Sourcepub fn downgrade(&self) -> WeakTrustSource
pub fn downgrade(&self) -> WeakTrustSource
A weak handle to this source, for a background task that must end
when the application drops its last strong handle.
See WeakTrustSource.
Trait Implementations§
Source§impl Clone for TrustSource
impl Clone for TrustSource
Source§impl Debug for TrustSource
impl Debug for TrustSource
impl Eq for TrustSource
Source§impl From<Trust> for TrustSource
impl From<Trust> for TrustSource
Source§fn from(trust: Trust) -> TrustSource
fn from(trust: Trust) -> TrustSource
Converts to this type from the input type.
Source§impl From<TrustSource> for ClientTls
impl From<TrustSource> for ClientTls
Source§fn from(trust: TrustSource) -> ClientTls
fn from(trust: TrustSource) -> ClientTls
Converts to this type from the input type.
Source§impl From<TrustSource> for ClientTrust
impl From<TrustSource> for ClientTrust
Source§fn from(trust: TrustSource) -> ClientTrust
fn from(trust: TrustSource) -> ClientTrust
Converts to this type from the input type.
Source§impl Hash for TrustSource
impl Hash for TrustSource
Auto Trait Implementations§
impl Freeze for TrustSource
impl RefUnwindSafe for TrustSource
impl Send for TrustSource
impl Sync for TrustSource
impl Unpin for TrustSource
impl UnsafeUnpin for TrustSource
impl UnwindSafe for TrustSource
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