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

Method try_from

plugins/lsps-plugin/src/core/tlv.rs:232–234  ·  view source on GitHub ↗
(value: &[u8])

Source from the content-addressed store, hash-verified

230impl TryFrom<&[u8]> for TlvStream {
231 type Error = TlvError;
232 fn try_from(value: &[u8]) -> std::result::Result<Self, Self::Error> {
233 TlvStream::from_bytes(value)
234 }
235}
236
237impl From<Vec<TlvRecord>> for TlvStream {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected