Enum breez_sdk_core::BreezEvent
source · 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: InvoicePaidDetails
Synced
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: PaymentFailedData
BackupStarted
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: BackupFailedData
ReverseSwapUpdated
Indicates that a reverse swap has been updated which may also include a status change
Fields
details: ReverseSwapInfo
SwapUpdated
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) -> Self
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
§impl<T> BoxIntoDart for Twhere
T: IntoDart,
impl<T> BoxIntoDart for Twhere
T: IntoDart,
fn box_into_dart(self: Box<T>) -> DartCObject
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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> 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