(&self)
| 46 | |
| 47 | impl RejectReason { |
| 48 | pub fn failure_code(&self) -> &'static str { |
| 49 | match self { |
| 50 | Self::OfferExpired { .. } => TEMPORARY_CHANNEL_FAILURE, |
| 51 | _ => UNKNOWN_NEXT_PEER, |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | #[derive(Debug, Error)] |
no outgoing calls
no test coverage detected