/// are documented, but generally indicates some precondition of a function was violated.
APIMisuseError {
/// A human-readable error message
/// are documented, but generally indicates some precondition of a function was violated.
APIMisuseError {
/// A human-readable error message
},
/// Due to a high feerate, we were unable to complete the request.
/// For example, this may be returned if the feerate implies we cannot open a channel at the
/// requested value, but opening a larger channel would succeed.
FeeRateTooHigh {
/// A human-readable error message
},
/// Due to a high feerate, we were unable to complete the request.
/// For example, this may be returned if the feerate implies we cannot open a channel at the
/// requested value, but opening a larger channel would succeed.
FeeRateTooHigh {
/// A human-readable error message
/// peer, channel at capacity, channel shutting down, etc.
ChannelUnavailable {
/// A human-readable error message
/// peer, channel at capacity, channel shutting down, etc.
ChannelUnavailable {
/// A human-readable error message
},
/// An attempt to call watch/update_channel returned an Err (ie you did this!), causing the
/// attempted action to fail.
},
/// An attempt to call watch/update_channel returned an Err (ie you did this!), causing the
/// attempted action to fail.
APIError::APIMisuseError {ref err, } => {
let mut err_nonref = (*err).clone();
nativeAPIError::APIMisuseError {
APIError::APIMisuseError {ref err, } => {
let mut err_nonref = (*err).clone();
nativeAPIError::APIMisuseError {
}
},
APIError::FeeRateTooHigh {ref err, ref feerate, } => {
let mut err_nonref = (*err).clone();
let mut feerate_nonref = (*feerate).clone();
nativeAPIError::FeeRateTooHigh {
}
},
APIError::FeeRateTooHigh {ref err, ref feerate, } => {
let mut err_nonref = (*err).clone();
let mut feerate_nonref = (*feerate).clone();
nativeAPIError::FeeRateTooHigh {
feerate: feerate_nonref,
}
},
APIError::RouteError {ref err, } => {
let mut err_nonref = (*err).clone();
nativeAPIError::RouteError {
feerate: feerate_nonref,
}
},
APIError::RouteError {ref err, } => {
let mut err_nonref = (*err).clone();
nativeAPIError::RouteError {
}
},
APIError::ChannelUnavailable {ref err, } => {
let mut err_nonref = (*err).clone();
nativeAPIError::ChannelUnavailable {
}
},
APIError::ChannelUnavailable {ref err, } => {
let mut err_nonref = (*err).clone();
nativeAPIError::ChannelUnavailable {
match self {
APIError::APIMisuseError {mut err, } => {
nativeAPIError::APIMisuseError {
match self {
APIError::APIMisuseError {mut err, } => {
nativeAPIError::APIMisuseError {
}
},
APIError::FeeRateTooHigh {mut err, mut feerate, } => {
nativeAPIError::FeeRateTooHigh {
}
},
APIError::FeeRateTooHigh {mut err, mut feerate, } => {
nativeAPIError::FeeRateTooHigh {
feerate: feerate,
}
},
APIError::RouteError {mut err, } => {
nativeAPIError::RouteError {
feerate: feerate,
}
},
APIError::RouteError {mut err, } => {
nativeAPIError::RouteError {
}
},
APIError::ChannelUnavailable {mut err, } => {
nativeAPIError::ChannelUnavailable {
}
},
APIError::ChannelUnavailable {mut err, } => {
nativeAPIError::ChannelUnavailable {
nativeAPIError::APIMisuseError {ref err, } => {
let mut err_nonref = (*err).clone();
APIError::APIMisuseError {
nativeAPIError::APIMisuseError {ref err, } => {
let mut err_nonref = (*err).clone();
APIError::APIMisuseError {
}
},
nativeAPIError::FeeRateTooHigh {ref err, ref feerate, } => {
let mut err_nonref = (*err).clone();
let mut feerate_nonref = (*feerate).clone();
APIError::FeeRateTooHigh {
}
},
nativeAPIError::FeeRateTooHigh {ref err, ref feerate, } => {
let mut err_nonref = (*err).clone();
let mut feerate_nonref = (*feerate).clone();
APIError::FeeRateTooHigh {
nativeAPIError::ChannelUnavailable {ref err, } => {
let mut err_nonref = (*err).clone();
APIError::ChannelUnavailable {
nativeAPIError::ChannelUnavailable {ref err, } => {
let mut err_nonref = (*err).clone();
APIError::ChannelUnavailable {
match native {
nativeAPIError::APIMisuseError {mut err, } => {
APIError::APIMisuseError {
match native {
nativeAPIError::APIMisuseError {mut err, } => {
APIError::APIMisuseError {
}
},
nativeAPIError::FeeRateTooHigh {mut err, mut feerate, } => {
APIError::FeeRateTooHigh {
}
},
nativeAPIError::FeeRateTooHigh {mut err, mut feerate, } => {
APIError::FeeRateTooHigh {
},
nativeAPIError::ChannelUnavailable {mut err, } => {
APIError::ChannelUnavailable {
},
nativeAPIError::ChannelUnavailable {mut err, } => {
APIError::ChannelUnavailable {