pub struct X509Source { /* private fields */ }Expand description
A source of X.509 SVIDs and bundles that is kept up-to-date by watching the Workload API.
Implementations§
Source§impl X509Source
impl X509Source
Sourcepub async fn new<I>(ctx: &Context, options: I) -> Result<X509Source>
pub async fn new<I>(ctx: &Context, options: I) -> Result<X509Source>
Creates a new X509Source with the given options.
It starts watching the Workload API for updates.
Sourcepub fn get_x509_svid(&self) -> Result<SVID>
pub fn get_x509_svid(&self) -> Result<SVID>
Returns the current X.509 SVID.
Sourcepub fn get_x509_bundle_for_trust_domain(
&self,
trust_domain: TrustDomain,
) -> Result<Bundle>
pub fn get_x509_bundle_for_trust_domain( &self, trust_domain: TrustDomain, ) -> Result<Bundle>
Returns the X.509 bundle for the given trust domain.
Sourcepub async fn wait_until_updated(&self, ctx: &Context) -> Result<()>
pub async fn wait_until_updated(&self, ctx: &Context) -> Result<()>
Waits until the source has been updated for the first time.
Trait Implementations§
Source§impl Source for X509Source
impl Source for X509Source
Source§fn get_x509_svid(&self) -> Result<SVID>
fn get_x509_svid(&self) -> Result<SVID>
Returns an X.509 SVID.
Source§impl Source for X509Source
impl Source for X509Source
Source§fn get_x509_bundle_for_trust_domain(
&self,
trust_domain: TrustDomain,
) -> Result<Bundle>
fn get_x509_bundle_for_trust_domain( &self, trust_domain: TrustDomain, ) -> Result<Bundle>
Returns the X.509 bundle for the given trust domain.
Auto Trait Implementations§
impl !Freeze for X509Source
impl !RefUnwindSafe for X509Source
impl Send for X509Source
impl Sync for X509Source
impl Unpin for X509Source
impl !UnwindSafe for X509Source
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request