pub enum BridgeError {
Show 18 variants
InvalidRequest(String),
ChannelClosed,
ChannelClosing,
ServerMisconfigured(String),
CapacityTooSmall {
capacity: u64,
min_capacity: u64,
},
ExpiryTooSoon {
expiry_timestamp: u64,
min_expiry: u64,
now: u64,
},
MaxAmountExceeded {
amount: u64,
max_allowed: u64,
},
BalanceExceedsCapacity {
balance: u64,
capacity: u64,
},
UnsupportedUnit(String),
ChannelIdMismatch,
ValidationFailed(String),
UnknownChannel,
InvalidSignature(String),
InsufficientBalance {
balance: u64,
amount_due: u64,
},
BalanceMismatch {
expected: u64,
actual: u64,
},
Internal(String),
ReceiverKeyNotAcceptable,
MintOrKeysetNotAcceptable,
}Variants§
InvalidRequest(String)
ChannelClosed
ChannelClosing
ServerMisconfigured(String)
CapacityTooSmall
ExpiryTooSoon
MaxAmountExceeded
BalanceExceedsCapacity
UnsupportedUnit(String)
ChannelIdMismatch
ValidationFailed(String)
UnknownChannel
InvalidSignature(String)
InsufficientBalance
BalanceMismatch
Internal(String)
ReceiverKeyNotAcceptable
MintOrKeysetNotAcceptable
Implementations§
Source§impl BridgeError
impl BridgeError
pub fn to_response(&self) -> BridgeErrorResponse
pub fn to_response_json(&self) -> String
Trait Implementations§
Source§impl Debug for BridgeError
impl Debug for BridgeError
Auto Trait Implementations§
impl Freeze for BridgeError
impl RefUnwindSafe for BridgeError
impl Send for BridgeError
impl Sync for BridgeError
impl Unpin for BridgeError
impl UnsafeUnpin for BridgeError
impl UnwindSafe for BridgeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more