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,
},
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
Fields
§
details: InvoicePaidDetails
Indicates that a new invoice has just been paid
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
Fields
§
details: PaymentFailedData
Indicates that an outgoing payment has been failed to complete
BackupStarted
Indicates that the backup process has just started
BackupSucceeded
Indicates that the backup process has just finished successfully
BackupFailed
Fields
§
details: BackupFailedData
Indicates that the backup process has just failed
SwapUpdated
Trait Implementations§
source§impl Clone for BreezEvent
impl Clone for BreezEvent
source§fn clone(&self) -> BreezEvent
fn clone(&self) -> BreezEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
source§fn eq(&self, other: &BreezEvent) -> bool
fn eq(&self, other: &BreezEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
Mutably borrows from an owned value. Read more
§impl<T> BoxIntoDart for Twhere
T: IntoDart,
impl<T> BoxIntoDart for Twhere
T: IntoDart,
fn box_into_dart(self: Box<T>) -> DartCObject
§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,
Forward to the method defined on the type
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,
Forward to the method defined on the type
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>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
Wrap the input message
T
in a tonic::Request