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

Method attach_opaque

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

Source from the content-addressed store, hash-verified

91
92 #[track_caller]
93 fn attach_opaque<A>(self, attachment: A) -> Result<T, Report<E::Context>>
94 where
95 A: OpaqueAttachment,
96 {
97 match self {
98 Ok(value) => Ok(value),
99 Err(error) => Err(error.into_report().attach_opaque(attachment)),
100 }
101 }
102
103 #[track_caller]
104 fn attach_opaque_with<A, F>(self, attachment: F) -> Result<T, Report<E::Context>>

Callers 1

attach_opaque_withMethod · 0.45

Calls 3

OkInterface · 0.85
ErrInterface · 0.85
into_reportMethod · 0.45

Tested by

no test coverage detected