pub struct ChainTrust { /* private fields */ }Expand description
Try a list of providers in order; the first Ok(_) wins.
Useful for “local cache first, registry fallback” setups or for rolling key migrations where an old static key and a new registry-backed provider coexist.
Implementations§
Source§impl ChainTrust
impl ChainTrust
pub fn new(providers: Vec<Arc<dyn TrustProvider>>) -> Self
Sourcepub fn of(first: Arc<dyn TrustProvider>, second: Arc<dyn TrustProvider>) -> Self
pub fn of(first: Arc<dyn TrustProvider>, second: Arc<dyn TrustProvider>) -> Self
Shortcut for a two-provider chain.
Trait Implementations§
Source§impl Clone for ChainTrust
impl Clone for ChainTrust
Source§fn clone(&self) -> ChainTrust
fn clone(&self) -> ChainTrust
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 moreSource§impl Debug for ChainTrust
impl Debug for ChainTrust
Source§impl TrustProvider for ChainTrust
impl TrustProvider for ChainTrust
fn verify_package<'life0, 'life1, 'async_trait>(
&'life0 self,
bytes: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<VerifiedPackage, HyperError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for ChainTrust
impl !UnwindSafe for ChainTrust
impl Freeze for ChainTrust
impl Send for ChainTrust
impl Sync for ChainTrust
impl Unpin for ChainTrust
impl UnsafeUnpin for ChainTrust
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more