pub enum BreezEvent {
NewBlock {
block: u32,
},
InvoicePaid {
details: InvoicePaidDetails,
},
Synced,
PaymentSucceed {
details: Payment,
},
PaymentFailed {
details: PaymentFailedData,
},
BackupStarted,
BackupSucceeded,
BackupFailed {
details: BackupFailedData,
},
ReverseSwapUpdated {
details: ReverseSwapInfo,
},
SwapUpdated {
details: SwapInfo,
},
}Expand description
Event emitted by the SDK. To listen for and react to these events, use an EventListener when initializing the BreezServices.
Variants§
NewBlock
Indicates that a new block has just been found
InvoicePaid
Indicates that a new invoice has just been paid
Fields
details: InvoicePaidDetailsSynced
Indicates that the local SDK state has just been sync-ed with the remote components
PaymentSucceed
Indicates that an outgoing payment has been completed successfully
PaymentFailed
Indicates that an outgoing payment has been failed to complete
Fields
details: PaymentFailedDataBackupStarted
Indicates that the backup process has just started
BackupSucceeded
Indicates that the backup process has just finished successfully
BackupFailed
Indicates that the backup process has just failed
Fields
details: BackupFailedDataReverseSwapUpdated
Indicates that a reverse swap has been updated which may also include a status change
Fields
details: ReverseSwapInfoSwapUpdated
Indicates that a swap has been updated which may also include a status change
Trait Implementations§
Source§impl Clone for BreezEvent
impl Clone for BreezEvent
Source§fn clone(&self) -> BreezEvent
fn clone(&self) -> BreezEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BreezEvent
impl Debug for BreezEvent
Source§impl IntoDart for BreezEvent
impl IntoDart for BreezEvent
Source§impl IntoIntoDart<BreezEvent> for BreezEvent
impl IntoIntoDart<BreezEvent> for BreezEvent
fn into_into_dart(self) -> BreezEvent
Source§impl PartialEq for BreezEvent
impl PartialEq for BreezEvent
impl IntoDartExceptPrimitive for BreezEvent
impl StructuralPartialEq for BreezEvent
Auto Trait Implementations§
impl Freeze for BreezEvent
impl RefUnwindSafe for BreezEvent
impl Send for BreezEvent
impl Sync for BreezEvent
impl Unpin for BreezEvent
impl UnwindSafe for BreezEvent
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request