#[non_exhaustive]pub struct ProfileReport {
pub profiles: Vec<&'static str>,
pub checked: Vec<&'static str>,
pub disabled: Vec<(&'static str, &'static str)>,
pub not_verifiable: Vec<&'static str>,
pub declared: Vec<(ExternalControl, String)>,
}Expand description
The guarantees of the profiles a handler was built with, as build()
left them: RequestHandler::profile_report.
build() refuses a profile whose requirements are not met, so every entry
of checked held when the handler was built. An entry of
disabled is a guarantee one of the profiles would
otherwise give, turned off by a call the builder was given. An entry of
not_verifiable is something the profile depends
on that the deployment has to show by other means: a running process
cannot see its own backups, the network in front of it, or where its keys
are kept.
A handler built with no profile has an empty report: nothing was checked.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.profiles: Vec<&'static str>The profiles applied, in the order they were applied.
checked: Vec<&'static str>What build() verified.
disabled: Vec<(&'static str, &'static str)>Each escape hatch the builder was given, and what it gives up.
not_verifiable: Vec<&'static str>What the profiles rely on that no check at startup can establish.
declared: Vec<(ExternalControl, String)>What the deployment declared about the controls outside this process
(declare_external_control),
as declared: nothing here was verified.
Trait Implementations§
Source§impl Clone for ProfileReport
impl Clone for ProfileReport
Source§fn clone(&self) -> ProfileReport
fn clone(&self) -> ProfileReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProfileReport
impl Debug for ProfileReport
Source§impl Default for ProfileReport
impl Default for ProfileReport
Source§fn default() -> ProfileReport
fn default() -> ProfileReport
Source§impl Display for ProfileReport
impl Display for ProfileReport
impl Eq for ProfileReport
Source§impl PartialEq for ProfileReport
impl PartialEq for ProfileReport
impl StructuralPartialEq for ProfileReport
Auto Trait Implementations§
impl Forget for ProfileReport
impl Freeze for ProfileReport
impl Move for ProfileReport
impl RefUnwindSafe for ProfileReport
impl Send for ProfileReport
impl Sync for ProfileReport
impl Unpin for ProfileReport
impl UnsafeUnpin for ProfileReport
impl UnwindSafe for ProfileReport
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].