MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / fmt

Method fmt

cc-eventlog/src/tcg.rs:111–125  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

109
110impl std::fmt::Debug for TcgImrEvent {
111 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
112 f.debug_struct("TcgImrEvent")
113 .field("imr_index", &self.imr_index)
114 .field("event_type", &self.event_type)
115 .field(
116 "digests",
117 &self
118 .digests
119 .iter()
120 .map(|d| hex::encode(&d.hash))
121 .collect::<Vec<String>>(),
122 )
123 .field("event", &hex::encode(&self.event))
124 .finish()
125 }
126}
127
128/***

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.85
finishMethod · 0.45

Tested by

no test coverage detected