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

Method attach

libs/error-stack/src/result.rs:70–78  ·  view source on GitHub ↗
(self, attachment: A)

Source from the content-addressed store, hash-verified

68
69 #[track_caller]
70 fn attach<A>(self, attachment: A) -> Result<T, Report<E::Context>>
71 where
72 A: Attachment,
73 {
74 match self {
75 Ok(value) => Ok(value),
76 Err(error) => Err(error.into_report().attach(attachment)),
77 }
78 }
79
80 #[track_caller]
81 fn attach_with<A, F>(self, attachment: F) -> Result<T, Report<E::Context>>

Callers 1

attach_withMethod · 0.45

Calls 3

OkInterface · 0.85
ErrInterface · 0.85
into_reportMethod · 0.45

Tested by

no test coverage detected