pub struct Set { /* private fields */ }Expand description
A set of JWT bundles for multiple trust domains.
Implementations§
Source§impl Set
impl Set
Sourcepub fn remove(&self, trust_domain: TrustDomain)
pub fn remove(&self, trust_domain: TrustDomain)
Removes the bundle for the given trust domain from the set.
Sourcepub fn has(&self, trust_domain: TrustDomain) -> bool
pub fn has(&self, trust_domain: TrustDomain) -> bool
Returns true if the set has a bundle for the given trust domain.
Sourcepub fn get(&self, trust_domain: TrustDomain) -> Option<Bundle>
pub fn get(&self, trust_domain: TrustDomain) -> Option<Bundle>
Returns the bundle for the given trust domain from the set.
Sourcepub fn get_jwt_bundle_for_trust_domain(
&self,
trust_domain: TrustDomain,
) -> Result<Bundle>
pub fn get_jwt_bundle_for_trust_domain( &self, trust_domain: TrustDomain, ) -> Result<Bundle>
Returns the JWT bundle for the given trust domain.
Trait Implementations§
Source§impl Source for Set
impl Source for Set
Source§fn get_jwt_bundle_for_trust_domain(
&self,
trust_domain: TrustDomain,
) -> Result<Bundle>
fn get_jwt_bundle_for_trust_domain( &self, trust_domain: TrustDomain, ) -> Result<Bundle>
Returns the JWT bundle for the given trust domain.
Auto Trait Implementations§
impl !Freeze for Set
impl RefUnwindSafe for Set
impl Send for Set
impl Sync for Set
impl Unpin for Set
impl UnwindSafe for Set
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