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

Method to_string

cln-rpc/src/notifications.rs:129–138  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

127
128impl ToString for ChannelStateChangedCause {
129 fn to_string(&self) -> String {
130 match self {
131 ChannelStateChangedCause::UNKNOWN => "UNKNOWN",
132 ChannelStateChangedCause::LOCAL => "LOCAL",
133 ChannelStateChangedCause::USER => "USER",
134 ChannelStateChangedCause::REMOTE => "REMOTE",
135 ChannelStateChangedCause::PROTOCOL => "PROTOCOL",
136 ChannelStateChangedCause::ONCHAIN => "ONCHAIN",
137 }.to_string()
138 }
139}
140
141#[derive(Clone, Debug, Deserialize, Serialize)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected