MCPcopy Create free account
hub / github.com/hashintel/hash / attach_with

Method attach_with

libs/error-stack/src/future.rs:246–255  ·  view source on GitHub ↗
(self, attachment: F)

Source from the content-addressed store, hash-verified

244
245 #[track_caller]
246 fn attach_with<A, F>(self, attachment: F) -> FutureWithLazyAttachment<Self, F>
247 where
248 A: Attachment,
249 F: FnOnce() -> A,
250 {
251 FutureWithLazyAttachment {
252 future: self,
253 inner: Some(attachment),
254 }
255 }
256
257 fn attach_opaque<A>(self, attachment: A) -> FutureWithOpaqueAttachment<Self, A>
258 where

Callers 15

load_json_configsFunction · 0.45
attach_resultFunction · 0.45
attach_futureFunction · 0.45
parse_configFunction · 0.45
parse_experimentFunction · 0.45
run_jexpr_testFunction · 0.45
compare_or_blessFunction · 0.45
read_json_pathFunction · 0.45
output_diagramFunction · 0.45
decodeMethod · 0.45
decode_eofMethod · 0.45
load_predefined_typesMethod · 0.45

Calls

no outgoing calls

Tested by 6

attach_resultFunction · 0.36
attach_futureFunction · 0.36
run_jexpr_testFunction · 0.36
compare_or_blessFunction · 0.36
check_policyFunction · 0.36
mainFunction · 0.36