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

Method from

plugins/lsps-plugin/src/proto/lsps2.rs:42–48  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

40
41impl From<Error> for RpcError {
42 fn from(error: Error) -> Self {
43 match error {
44 Error::InvalidOpeningFeeParams => RpcError::invalid_opening_fee_params(error),
45 Error::PaymentSizeTooSmall => RpcError::payment_size_too_small(error),
46 Error::PaymentSizeTooLarge => RpcError::payment_size_too_large(error),
47 }
48 }
49}
50
51impl core::error::Error for Error {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected