pub struct Applied<'a> {
pub config: &'a Config,
pub profiles: &'a [ProfileConfig],
}Expand description
One resolved configuration, as the frozen-key check sees it.
Two fields rather than one because the per-profile view is not derivable
from a Config without work that can fail: resolve_profiles overlays the
global sections onto each profile key by key and returns a Result. Pairing
them means a projection below is an infallible read.
profiles has no reader in [FROZEN] any more — the two entries that used
it both came off when the profile set and each profile’s [signer] became
reloadable. It stays because the pairing is the shape of a resolved
configuration and the next entry to be added may well need it, and because
the alternative is a caller assembling the pair again the moment one does.
Fields§
§config: &'a Config§profiles: &'a [ProfileConfig]Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Applied<'a>
impl<'a> !UnwindSafe for Applied<'a>
impl<'a> Freeze for Applied<'a>
impl<'a> Send for Applied<'a>
impl<'a> Sync for Applied<'a>
impl<'a> Unpin for Applied<'a>
impl<'a> UnsafeUnpin for Applied<'a>
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<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> ⓘ
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 more