pub struct X509Context { /* private fields */ }
Expand description
Represents all X.509 materials fetched from the Workload API.
Implementations§
Source§impl X509Context
impl X509Context
Sourcepub fn new(svids: Vec<X509Svid>, bundle_set: X509BundleSet) -> Self
pub fn new(svids: Vec<X509Svid>, bundle_set: X509BundleSet) -> Self
Creates a new X509Context
.
Sourcepub fn default_svid(&self) -> Option<&X509Svid>
pub fn default_svid(&self) -> Option<&X509Svid>
Returns the default X509Svid
, i.e. the first in the list.
Sourcepub fn bundle_set(&self) -> &X509BundleSet
pub fn bundle_set(&self) -> &X509BundleSet
Returns the X509BundleSet
in the context.
Trait Implementations§
Source§impl Clone for X509Context
impl Clone for X509Context
Source§fn clone(&self) -> X509Context
fn clone(&self) -> X509Context
Returns a copy of the value. Read more
1.0.0 · 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 X509Context
impl Debug for X509Context
Source§impl PartialEq for X509Context
impl PartialEq for X509Context
impl Eq for X509Context
impl StructuralPartialEq for X509Context
Auto Trait Implementations§
impl Freeze for X509Context
impl RefUnwindSafe for X509Context
impl Send for X509Context
impl Sync for X509Context
impl Unpin for X509Context
impl UnwindSafe for X509Context
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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