MCPcopy Create free account
hub / github.com/ElementsProject/lightning / expecting

Method expecting

plugins/lsps-plugin/src/core/tlv.rs:218–220  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter)

Source from the content-addressed store, hash-verified

216 impl<'de> serde::de::Visitor<'de> for V {
217 type Value = TlvStream;
218 fn expecting(&self, f: &mut fmt::Formatter) -> fmt::Result {
219 write!(f, "a hex string representing a Lightning TLV stream")
220 }
221 fn visit_str<E: DeError>(self, s: &str) -> std::result::Result<Self::Value, E> {
222 let bytes = hex::decode(s).map_err(E::custom)?;
223 TlvStream::from_bytes_auto(&bytes).map_err(E::custom)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected