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

Method attach

libs/error-stack/src/report.rs:533–543  ·  view source on GitHub ↗
(mut self, attachment: A)

Source from the content-addressed store, hash-verified

531 /// ```
532 #[track_caller]
533 pub fn attach<A>(mut self, attachment: A) -> Self
534 where
535 A: Attachment,
536 {
537 let old_frames = mem::replace(self.frames.as_mut(), Vec::with_capacity(1));
538 self.frames.push(Frame::from_printable_attachment(
539 attachment,
540 old_frames.into_boxed_slice(),
541 ));
542 self
543 }
544
545 /// Adds additional information to the [`Frame`] stack.
546 ///

Callers 15

snapshotFunction · 0.45
try_fromMethod · 0.45
serverFunction · 0.45
run_admin_serverFunction · 0.45
create_producerMethod · 0.45
into_reportMethod · 0.45
into_reportMethod · 0.45
create_sources_nestedFunction · 0.45
linearFunction · 0.45
linear_extFunction · 0.45
multiline_contextFunction · 0.45
multilineFunction · 0.45

Calls 3

with_capacityFunction · 0.85
pushMethod · 0.65
as_mutMethod · 0.45

Tested by 15

create_sources_nestedFunction · 0.36
linearFunction · 0.36
linear_extFunction · 0.36
multiline_contextFunction · 0.36
multilineFunction · 0.36
sourcesFunction · 0.36
sources_transparentFunction · 0.36
complexFunction · 0.36
attach_opaqueFunction · 0.36
attach_resultFunction · 0.36
attach_futureFunction · 0.36
bailFunction · 0.36