pub struct ConsentConfig {
pub prompter: Arc<dyn ConsentPrompter>,
pub has_prompt_channel: bool,
pub sink: Arc<CurrentConsentSink>,
pub cache: Arc<DecisionCache>,
}Expand description
How an ask-mode capability gate reaches a human, and where its answers
are remembered for the rest of the run.
Fields§
§prompter: Arc<dyn ConsentPrompter>§has_prompt_channel: boolMust agree with prompter’s kind — false for a denying one. It feeds
the instantiation audit header’s warning about capabilities declared
ask that no one can actually be asked about.
sink: Arc<CurrentConsentSink>Where the actor routes a question raised mid-call. Only transports with a back-channel install one; everything else prompts locally or denies.
cache: Arc<DecisionCache>Implementations§
Source§impl ConsentConfig
impl ConsentConfig
Auto Trait Implementations§
impl !RefUnwindSafe for ConsentConfig
impl !UnwindSafe for ConsentConfig
impl Freeze for ConsentConfig
impl Send for ConsentConfig
impl Sync for ConsentConfig
impl Unpin for ConsentConfig
impl UnsafeUnpin for ConsentConfig
Blanket Implementations§
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<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.