pub struct SignerSet { /* private fields */ }Expand description
The backends one configuration generation runs, in the two views that are needed of them.
by_profile is what a Profile is handed and the only
thing that serves a request. by_identity exists purely so the next
reload can ask “is this one already built?” — see build_backends, where
answering yes is what keeps a SIGHUP from re-reading a CA key and
re-opening a PKCS#11 session for a configuration that did not move.
Implementations§
Source§impl SignerSet
impl SignerSet
Sourcepub fn get(&self, profile: &str) -> Option<&Arc<dyn SignerBackend>>
pub fn get(&self, profile: &str) -> Option<&Arc<dyn SignerBackend>>
The backend serving profile, if that endpoint is mounted.
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
How many distinct backend instances this set holds — one per distinct
[signer] configuration, not one per profile.
pub fn is_empty(&self) -> bool
Sourcepub fn carried(&self) -> CarriedState
pub fn carried(&self) -> CarriedState
Everything these backends would hand to their replacements, folded into one map.
Folded across all of them rather than matched backend to backend,
because the keys are resources and [signer_paths] already refuses two
live backends over one path — so a rebuilt backend finds its own state by
naming its own files, and no ownership analysis is needed here.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SignerSet
impl !UnwindSafe for SignerSet
impl Freeze for SignerSet
impl Send for SignerSet
impl Sync for SignerSet
impl Unpin for SignerSet
impl UnsafeUnpin for SignerSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
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> ⓘ
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