pub enum Event {
Show 41 variants
ContractSendChannelClose(ContractSendChannelClose),
ContractSendChannelCoopSettle(ContractSendChannelCoopSettle),
ContractSendChannelWithdraw(ContractSendChannelWithdraw),
ContractSendChannelSettle(ContractSendChannelSettle),
ContractSendChannelUpdateTransfer(ContractSendChannelUpdateTransfer),
ContractSendChannelBatchUnlock(ContractSendChannelBatchUnlock),
ContractSendSecretReveal(ContractSendSecretReveal),
PaymentReceivedSuccess(PaymentReceivedSuccess),
PaymentSentSuccess(PaymentSentSuccess),
SendWithdrawExpired(SendWithdrawExpired),
SendWithdrawRequest(SendWithdrawRequest),
SendWithdrawConfirmation(SendWithdrawConfirmation),
SendLockedTransfer(SendLockedTransfer),
SendLockExpired(SendLockExpired),
SendSecretRequest(SendSecretRequest),
SendSecretReveal(SendSecretReveal),
SendUnlock(SendUnlock),
SendPFSUpdate(PFSUpdate),
SendMSUpdate(BalanceProofState),
SendProcessed(SendProcessed),
UnlockSuccess(UnlockSuccess),
UnlockClaimSuccess(UnlockClaimSuccess),
UpdatedServicesAddresses(UpdatedServicesAddresses),
ExpireServicesAddresses(BlockNumber),
ErrorInvalidActionWithdraw(ErrorInvalidActionWithdraw),
ErrorInvalidActionCoopSettle(ErrorInvalidActionCoopSettle),
ErrorInvalidActionSetRevealTimeout(ErrorInvalidActionSetRevealTimeout),
ErrorInvalidSecretRequest(ErrorInvalidSecretRequest),
ErrorInvalidReceivedLockedTransfer(ErrorInvalidReceivedLockedTransfer),
ErrorInvalidReceivedLockExpired(ErrorInvalidReceivedLockExpired),
ErrorInvalidReceivedTransferRefund(ErrorInvalidReceivedTransferRefund),
ErrorInvalidReceivedUnlock(ErrorInvalidReceivedUnlock),
ErrorInvalidReceivedWithdrawRequest(ErrorInvalidReceivedWithdrawRequest),
ErrorInvalidReceivedWithdrawConfirmation(ErrorInvalidReceivedWithdrawConfirmation),
ErrorInvalidReceivedWithdrawExpired(ErrorInvalidReceivedWithdrawExpired),
ErrorPaymentSentFailed(ErrorPaymentSentFailed),
ErrorRouteFailed(ErrorRouteFailed),
ErrorUnlockClaimFailed(ErrorUnlockClaimFailed),
ErrorUnlockFailed(ErrorUnlockFailed),
ErrorUnexpectedReveal(ErrorUnexpectedReveal),
ClearMessages(QueueIdentifier),
}Expand description
An enum containing all possible event variants.
Variants§
ContractSendChannelClose(ContractSendChannelClose)
ContractSendChannelCoopSettle(ContractSendChannelCoopSettle)
ContractSendChannelWithdraw(ContractSendChannelWithdraw)
ContractSendChannelSettle(ContractSendChannelSettle)
ContractSendChannelUpdateTransfer(ContractSendChannelUpdateTransfer)
ContractSendChannelBatchUnlock(ContractSendChannelBatchUnlock)
ContractSendSecretReveal(ContractSendSecretReveal)
PaymentReceivedSuccess(PaymentReceivedSuccess)
PaymentSentSuccess(PaymentSentSuccess)
SendWithdrawExpired(SendWithdrawExpired)
SendWithdrawRequest(SendWithdrawRequest)
SendWithdrawConfirmation(SendWithdrawConfirmation)
SendLockedTransfer(SendLockedTransfer)
SendLockExpired(SendLockExpired)
SendSecretRequest(SendSecretRequest)
SendSecretReveal(SendSecretReveal)
SendUnlock(SendUnlock)
SendPFSUpdate(PFSUpdate)
SendMSUpdate(BalanceProofState)
SendProcessed(SendProcessed)
UnlockSuccess(UnlockSuccess)
UnlockClaimSuccess(UnlockClaimSuccess)
UpdatedServicesAddresses(UpdatedServicesAddresses)
ExpireServicesAddresses(BlockNumber)
ErrorInvalidActionWithdraw(ErrorInvalidActionWithdraw)
ErrorInvalidActionCoopSettle(ErrorInvalidActionCoopSettle)
ErrorInvalidActionSetRevealTimeout(ErrorInvalidActionSetRevealTimeout)
ErrorInvalidSecretRequest(ErrorInvalidSecretRequest)
ErrorInvalidReceivedLockedTransfer(ErrorInvalidReceivedLockedTransfer)
ErrorInvalidReceivedLockExpired(ErrorInvalidReceivedLockExpired)
ErrorInvalidReceivedTransferRefund(ErrorInvalidReceivedTransferRefund)
ErrorInvalidReceivedUnlock(ErrorInvalidReceivedUnlock)
ErrorInvalidReceivedWithdrawRequest(ErrorInvalidReceivedWithdrawRequest)
ErrorInvalidReceivedWithdrawConfirmation(ErrorInvalidReceivedWithdrawConfirmation)
ErrorInvalidReceivedWithdrawExpired(ErrorInvalidReceivedWithdrawExpired)
ErrorPaymentSentFailed(ErrorPaymentSentFailed)
ErrorRouteFailed(ErrorRouteFailed)
ErrorUnlockClaimFailed(ErrorUnlockClaimFailed)
ErrorUnlockFailed(ErrorUnlockFailed)
ErrorUnexpectedReveal(ErrorUnexpectedReveal)
ClearMessages(QueueIdentifier)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Into<Event> for ContractSendChannelBatchUnlock
impl Into<Event> for ContractSendChannelBatchUnlock
Source§impl Into<Event> for ContractSendChannelClose
impl Into<Event> for ContractSendChannelClose
Source§impl Into<Event> for ContractSendChannelCoopSettle
impl Into<Event> for ContractSendChannelCoopSettle
Source§impl Into<Event> for ContractSendChannelSettle
impl Into<Event> for ContractSendChannelSettle
Source§impl Into<Event> for ContractSendChannelWithdraw
impl Into<Event> for ContractSendChannelWithdraw
Source§impl Into<Event> for ContractSendSecretReveal
impl Into<Event> for ContractSendSecretReveal
Source§impl Into<Event> for ErrorInvalidActionCoopSettle
impl Into<Event> for ErrorInvalidActionCoopSettle
Source§impl Into<Event> for ErrorInvalidActionWithdraw
impl Into<Event> for ErrorInvalidActionWithdraw
Source§impl Into<Event> for ErrorInvalidReceivedLockExpired
impl Into<Event> for ErrorInvalidReceivedLockExpired
Source§impl Into<Event> for ErrorInvalidReceivedUnlock
impl Into<Event> for ErrorInvalidReceivedUnlock
Source§impl Into<Event> for ErrorInvalidSecretRequest
impl Into<Event> for ErrorInvalidSecretRequest
Source§impl Into<Event> for ErrorPaymentSentFailed
impl Into<Event> for ErrorPaymentSentFailed
Source§impl Into<Event> for ErrorRouteFailed
impl Into<Event> for ErrorRouteFailed
Source§impl Into<Event> for ErrorUnexpectedReveal
impl Into<Event> for ErrorUnexpectedReveal
Source§impl Into<Event> for ErrorUnlockClaimFailed
impl Into<Event> for ErrorUnlockClaimFailed
Source§impl Into<Event> for ErrorUnlockFailed
impl Into<Event> for ErrorUnlockFailed
Source§impl Into<Event> for PaymentReceivedSuccess
impl Into<Event> for PaymentReceivedSuccess
Source§impl Into<Event> for PaymentSentSuccess
impl Into<Event> for PaymentSentSuccess
Source§impl Into<Event> for SendLockExpired
impl Into<Event> for SendLockExpired
Source§impl Into<Event> for SendLockedTransfer
impl Into<Event> for SendLockedTransfer
Source§impl Into<Event> for SendProcessed
impl Into<Event> for SendProcessed
Source§impl Into<Event> for SendSecretRequest
impl Into<Event> for SendSecretRequest
Source§impl Into<Event> for SendSecretReveal
impl Into<Event> for SendSecretReveal
Source§impl Into<Event> for SendUnlock
impl Into<Event> for SendUnlock
Source§impl Into<Event> for SendWithdrawConfirmation
impl Into<Event> for SendWithdrawConfirmation
Source§impl Into<Event> for SendWithdrawExpired
impl Into<Event> for SendWithdrawExpired
Source§impl Into<Event> for SendWithdrawRequest
impl Into<Event> for SendWithdrawRequest
Source§impl Into<Event> for UnlockClaimSuccess
impl Into<Event> for UnlockClaimSuccess
Source§impl Into<Event> for UnlockSuccess
impl Into<Event> for UnlockSuccess
Source§impl Into<Event> for UpdatedServicesAddresses
impl Into<Event> for UpdatedServicesAddresses
Source§impl TryFrom<Event> for ContractSendEvent
impl TryFrom<Event> for ContractSendEvent
Source§impl TryFrom<Event> for SendMessageEvent
impl TryFrom<Event> for SendMessageEvent
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.