pub struct StoreApprovalService { /* private fields */ }Expand description
Core traits and types.
Always available regardless of feature flags. Includes:
Agent- The fundamental trait for all agentsTool/Toolset- For extending agents with capabilitiesSession/State- For managing conversation contextEvent- For streaming agent responsesAdkError/Result- Unified error handling TheApprovalServiceover anApprovalStore.
Durability and cross-process atomicity come from the store: on a durable backend requests survive restarts and every process deciding through the same database sees one winner per version.
§Example
use std::sync::Arc;
use adk_core::{
ApprovalPolicy, ApproverSelector, InMemoryApprovalStore, RunConfig, StoreApprovalService,
};
let service = StoreApprovalService::new(Arc::new(InMemoryApprovalStore::new()))
.with_router(ApprovalPolicy::new([ApproverSelector::group("ops")]));
let config = RunConfig::builder().approval_service(Arc::new(service)).build();
assert!(config.approval_store.is_some());Implementations§
Source§impl StoreApprovalService
impl StoreApprovalService
Sourcepub fn new(store: Arc<dyn ApprovalStore>) -> StoreApprovalService
pub fn new(store: Arc<dyn ApprovalStore>) -> StoreApprovalService
A service over store, reading the system clock, with no notifiers, run store,
or router. Without a router held calls stay in the store only, unless a host such
as a kernel gives it one (ApprovalService::route_unrouted).
Sourcepub fn with_clock(self, clock: Arc<dyn Clock>) -> StoreApprovalService
pub fn with_clock(self, clock: Arc<dyn Clock>) -> StoreApprovalService
Reads time from clock.
Sourcepub fn with_notifier(
self,
notifier: Arc<dyn ApprovalNotifier>,
) -> StoreApprovalService
pub fn with_notifier( self, notifier: Arc<dyn ApprovalNotifier>, ) -> StoreApprovalService
Adds a notifier.
Sourcepub fn with_run_store(
self,
run_store: Arc<dyn DurableRunStore>,
) -> StoreApprovalService
pub fn with_run_store( self, run_store: Arc<dyn DurableRunStore>, ) -> StoreApprovalService
Wakes runs in run_store when their request resolves: the run the request names and
every run of its session parked on the call
(RunCheckpointRef::AwaitingApproval
naming its fingerprint; spec 3.3 §7.3).
Sourcepub fn with_router(
self,
router: impl ApprovalRouter + 'static,
) -> StoreApprovalService
pub fn with_router( self, router: impl ApprovalRouter + 'static, ) -> StoreApprovalService
Routes calls held by the governed path into requests.
Sourcepub fn with_audit(self, audit: AuditTrail) -> StoreApprovalService
pub fn with_audit(self, audit: AuditTrail) -> StoreApprovalService
Records every approver’s decision in audit before it takes effect.
The record’s actor is the approver, with the delegator they acted for in the
delegation chain; it carries the digest of the arguments shown to approvers and
of any edited arguments, never the arguments. Under
AuditFailureMode::Block a decision
whose record cannot be written is refused with audit.record_failed.
§Example
use std::sync::Arc;
use adk_core::audit_log::{AuditTrail, InMemoryAuditRecorder};
use adk_core::{InMemoryApprovalStore, StoreApprovalService};
let service = StoreApprovalService::new(Arc::new(InMemoryApprovalStore::new()))
.with_audit(AuditTrail::new(Arc::new(InMemoryAuditRecorder::new())));Sourcepub fn with_directory(
self,
directory: Arc<dyn ApproverDirectory>,
) -> StoreApprovalService
pub fn with_directory( self, directory: Arc<dyn ApproverDirectory>, ) -> StoreApprovalService
Takes approvers’ and delegators’ groups from directory, ignoring the groups
callers assert (see ApproverDirectory).
Trait Implementations§
Source§impl ApprovalService for StoreApprovalService
impl ApprovalService for StoreApprovalService
Source§fn submit<'life0, 'async_trait>(
&'life0 self,
request: ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Result<ApprovalRequest, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
StoreApprovalService: 'async_trait,
fn submit<'life0, 'async_trait>(
&'life0 self,
request: ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Result<ApprovalRequest, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
StoreApprovalService: 'async_trait,
Source§fn submit_call<'life0, 'async_trait>(
&'life0 self,
call: ApprovalCall,
) -> Pin<Box<dyn Future<Output = Result<Option<ApprovalRequest>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
StoreApprovalService: 'async_trait,
fn submit_call<'life0, 'async_trait>(
&'life0 self,
call: ApprovalCall,
) -> Pin<Box<dyn Future<Output = Result<Option<ApprovalRequest>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
StoreApprovalService: 'async_trait,
None when the service routes no request for the call. Read moreSource§fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ApprovalRequest>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
StoreApprovalService: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ApprovalRequest>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
StoreApprovalService: 'async_trait,
Source§fn inbox<'life0, 'async_trait>(
&'life0 self,
query: InboxQuery,
) -> Pin<Box<dyn Future<Output = Result<InboxPage, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
StoreApprovalService: 'async_trait,
fn inbox<'life0, 'async_trait>(
&'life0 self,
query: InboxQuery,
) -> Pin<Box<dyn Future<Output = Result<InboxPage, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
StoreApprovalService: 'async_trait,
InboxQuery. Read moreSource§fn decide<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
expected_version: u64,
decision: ApprovalDecision,
) -> Pin<Box<dyn Future<Output = Result<ApprovalRequest, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
StoreApprovalService: 'async_trait,
fn decide<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
expected_version: u64,
decision: ApprovalDecision,
) -> Pin<Box<dyn Future<Output = Result<ApprovalRequest, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
StoreApprovalService: 'async_trait,
decision on the request at expected_version, resolving it when the
decision completes the quorum, rejects, or responds. Read moreSource§fn delegate<'life0, 'async_trait>(
&'life0 self,
delegation: ApprovalDelegation,
) -> Pin<Box<dyn Future<Output = Result<ApprovalDelegation, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
StoreApprovalService: 'async_trait,
fn delegate<'life0, 'async_trait>(
&'life0 self,
delegation: ApprovalDelegation,
) -> Pin<Box<dyn Future<Output = Result<ApprovalDelegation, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
StoreApprovalService: 'async_trait,
Source§fn revoke_delegation<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
StoreApprovalService: 'async_trait,
fn revoke_delegation<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
StoreApprovalService: 'async_trait,
Source§fn delegations_to<'life0, 'life1, 'async_trait>(
&'life0 self,
to: &'life1 SubjectRef,
) -> Pin<Box<dyn Future<Output = Result<Vec<ApprovalDelegation>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
StoreApprovalService: 'async_trait,
fn delegations_to<'life0, 'life1, 'async_trait>(
&'life0 self,
to: &'life1 SubjectRef,
) -> Pin<Box<dyn Future<Output = Result<Vec<ApprovalDelegation>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
StoreApprovalService: 'async_trait,
to. Read moreSource§fn cancel<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
reason: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<ApprovalRequest, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
StoreApprovalService: 'async_trait,
fn cancel<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
reason: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<ApprovalRequest, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
StoreApprovalService: 'async_trait,
Source§fn withdraw<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
reason: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<ApprovalRequest, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
StoreApprovalService: 'async_trait,
fn withdraw<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
reason: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<ApprovalRequest, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
StoreApprovalService: 'async_trait,
Source§fn tick<'life0, 'async_trait>(
&'life0 self,
now: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<ApprovalTick, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
StoreApprovalService: 'async_trait,
fn tick<'life0, 'async_trait>(
&'life0 self,
now: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<ApprovalTick, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
StoreApprovalService: 'async_trait,
now, and
applies resolutions an earlier failure left unapplied. Read moreSource§fn approval_store(&self) -> Option<Arc<dyn ApprovalStore>>
fn approval_store(&self) -> Option<Arc<dyn ApprovalStore>>
Source§fn record_review<'life0, 'async_trait>(
&'life0 self,
call: ApprovalCall,
decision: ApprovalDecision,
) -> Pin<Box<dyn Future<Output = Result<Option<ApprovalRequest>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
StoreApprovalService: 'async_trait,
fn record_review<'life0, 'async_trait>(
&'life0 self,
call: ApprovalCall,
decision: ApprovalDecision,
) -> Pin<Box<dyn Future<Output = Result<Option<ApprovalRequest>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
StoreApprovalService: 'async_trait,
ToolReviewer approved or denied in the run as
a request it decided, so the inbox’s history shows the decision and who made it
(decided_by: model:<id> for a ModelApprover). Returns
None when the service routes no request for the call. Read moreSource§fn route_unrouted(&self, router: Arc<dyn ApprovalRouter>) -> bool
fn route_unrouted(&self, router: Arc<dyn ApprovalRouter>) -> bool
router when the service has no router of its own, so a host
that decides calls in an inbox, such as a kernel, receives every call the governed
path holds. A router the service was built with keeps deciding, including to leave a
call in the store only. Returns whether held calls reach the inbox afterwards. Read moreSource§fn add_notifier(&self, notifier: Arc<dyn ApprovalNotifier>) -> bool
fn add_notifier(&self, notifier: Arc<dyn ApprovalNotifier>) -> bool
notifier to a service already built, for a host built after it, such as a
kernel that publishes each request on its event bus. Returns whether the service took
it. Read moreSource§fn add_resolution(&self, hook: Arc<dyn ApprovalResolution>) -> bool
fn add_resolution(&self, hook: Arc<dyn ApprovalResolution>) -> bool
hook, which runs for each request a decision resolves, after the decision is
recorded and before the outcome applies (ApprovalResolution). Returns whether the
service took it. Read moreAuto Trait Implementations§
impl !Freeze for StoreApprovalService
impl !RefUnwindSafe for StoreApprovalService
impl !UnwindSafe for StoreApprovalService
impl Forget for StoreApprovalService
impl Move for StoreApprovalService
impl Send for StoreApprovalServicewhere
Arc<dyn ApprovalStore>: Send,
Arc<dyn Clock>: Send,
RawVecInner: Send,
Arc<dyn ApprovalNotifier>: Send,
Arc<dyn DurableRunStore>: Send,
Arc<dyn ApprovalRouter>: Send,
Arc<dyn AuditRecorder>: Send,
Arc<dyn ApproverDirectory>: Send,
OnceLock<Arc<dyn ApprovalRouter>>: Send,
RwLock<Vec<Arc<dyn ApprovalNotifier>>>: Send,
RwLock<Vec<Arc<dyn ApprovalResolution>>>: Send,
impl Sync for StoreApprovalServicewhere
Arc<dyn ApprovalStore>: Sync,
Arc<dyn Clock>: Sync,
RawVecInner: Sync,
Arc<dyn ApprovalNotifier>: Sync,
Arc<dyn DurableRunStore>: Sync,
Arc<dyn ApprovalRouter>: Sync,
Arc<dyn AuditRecorder>: Sync,
Arc<dyn ApproverDirectory>: Sync,
OnceLock<Arc<dyn ApprovalRouter>>: Sync,
RwLock<Vec<Arc<dyn ApprovalNotifier>>>: Sync,
RwLock<Vec<Arc<dyn ApprovalResolution>>>: Sync,
impl Unpin for StoreApprovalServicewhere
Arc<dyn ApprovalStore>: Unpin,
Arc<dyn Clock>: Unpin,
*const u8 is !null: Unpin,
Arc<dyn ApprovalNotifier>: Unpin,
Arc<dyn DurableRunStore>: Unpin,
Arc<dyn ApprovalRouter>: Unpin,
Arc<dyn AuditRecorder>: Unpin,
Arc<dyn ApproverDirectory>: Unpin,
Align4<u32>: Unpin,
Align1<u8>: Unpin,
Arc<dyn ApprovalResolution>: Unpin,
impl UnsafeUnpin for StoreApprovalServicewhere
*const ArcInner<dyn ApprovalStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ApprovalStore>>: UnsafeUnpin,
*const ArcInner<dyn Clock> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Clock>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Arc<dyn ApprovalNotifier>>: UnsafeUnpin,
*const ArcInner<dyn DurableRunStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn DurableRunStore>>: UnsafeUnpin,
*const ArcInner<dyn ApprovalRouter> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ApprovalRouter>>: UnsafeUnpin,
*const ArcInner<dyn AuditRecorder> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn AuditRecorder>>: UnsafeUnpin,
*const ArcInner<dyn ApproverDirectory> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ApproverDirectory>>: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
PhantomData<Arc<dyn ApprovalRouter>>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
PhantomData<Arc<dyn ApprovalResolution>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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 moreimpl<T> MaybeSend for Twhere
T: Send,
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.