pub struct Identities { /* private fields */ }Implementations§
Source§impl Identities
impl Identities
pub fn load(path: &Path) -> Result<Identities, String>
pub fn parse(text: &str) -> Result<Identities, String>
pub fn is_empty(&self) -> bool
Sourcepub fn client_by_token(&self, token: &str) -> Option<&ClientIdentity>
pub fn client_by_token(&self, token: &str) -> Option<&ClientIdentity>
The client whose token hashes to token’s hash.
Sourcepub fn client_by_certificate(&self, der: &[u8]) -> Option<&ClientIdentity>
pub fn client_by_certificate(&self, der: &[u8]) -> Option<&ClientIdentity>
The client identified by a verified DER client certificate.
pub fn len(&self) -> usize
Sourcepub fn by_token(&self, token: &str) -> Option<&WorkerIdentity>
pub fn by_token(&self, token: &str) -> Option<&WorkerIdentity>
The worker whose token hashes to token’s hash.
Sourcepub fn by_certificate(&self, der: &[u8]) -> Option<&WorkerIdentity>
pub fn by_certificate(&self, der: &[u8]) -> Option<&WorkerIdentity>
The worker identified by a DER client certificate (already verified against the client CA by TLS).
Trait Implementations§
Source§impl Debug for Identities
impl Debug for Identities
Auto Trait Implementations§
impl Forget for Identities
impl Freeze for Identities
impl Move for Identities
impl RefUnwindSafe for Identities
impl Send for Identities
impl Sync for Identities
impl Unpin for Identities
impl UnsafeUnpin for Identities
impl UnwindSafe for Identities
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreSource§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