pub enum ChainEventDiscriminants {
Announcement,
ChannelOpened,
ChannelClosureInitiated,
ChannelClosed,
ChannelBalanceIncreased,
ChannelBalanceDecreased,
TicketRedeemed,
WinningProbabilityIncreased,
WinningProbabilityDecreased,
TicketPriceChanged,
}Variants§
Announcement
Peer on-chain announcement event.
The AccountEntry is guaranteed to be announced.
ChannelOpened
A new channel has been opened
The ChannelEntry is guaranteed to be opened.
ChannelClosureInitiated
Channel closure has been initiated.
The ChannelEntry is guaranteed to be pending to close.
ChannelClosed
Channel closure has been finalized.
The ChannelEntry is guaranteed to be closed.
ChannelBalanceIncreased
Channel balance has increased by an amount.
The HoprBalance is never 0 and represents the difference from the current new balance on the
ChannelEntry.
ChannelBalanceDecreased
Channel balance has decreased by an amount.
The HoprBalance is never 0 and represents the difference from the current new balance on the
ChannelEntry.
TicketRedeemed
Ticket has been redeemed on a channel.
If the channel is a node’s own, it also contains the ticket that has been redeemed.
WinningProbabilityIncreased
The minimum winning probability has been increased.
WinningProbabilityDecreased
The minimum winning probability has been decreased.
TicketPriceChanged
A new ticket price has been set.
Trait Implementations§
Source§impl Clone for ChainEventDiscriminants
impl Clone for ChainEventDiscriminants
Source§fn clone(&self) -> ChainEventDiscriminants
fn clone(&self) -> ChainEventDiscriminants
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChainEventDiscriminants
impl Debug for ChainEventDiscriminants
Source§impl<'_enum> From<&'_enum ChainEvent> for ChainEventDiscriminants
impl<'_enum> From<&'_enum ChainEvent> for ChainEventDiscriminants
Source§fn from(val: &'_enum ChainEvent) -> ChainEventDiscriminants
fn from(val: &'_enum ChainEvent) -> ChainEventDiscriminants
Source§impl From<ChainEvent> for ChainEventDiscriminants
impl From<ChainEvent> for ChainEventDiscriminants
Source§fn from(val: ChainEvent) -> ChainEventDiscriminants
fn from(val: ChainEvent) -> ChainEventDiscriminants
Source§impl PartialEq for ChainEventDiscriminants
impl PartialEq for ChainEventDiscriminants
impl Copy for ChainEventDiscriminants
impl Eq for ChainEventDiscriminants
impl StructuralPartialEq for ChainEventDiscriminants
Auto Trait Implementations§
impl Freeze for ChainEventDiscriminants
impl RefUnwindSafe for ChainEventDiscriminants
impl Send for ChainEventDiscriminants
impl Sync for ChainEventDiscriminants
impl Unpin for ChainEventDiscriminants
impl UnwindSafe for ChainEventDiscriminants
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 more