pub enum SdkEvent {
Synced,
UnclaimedDeposits {
unclaimed_deposits: Vec<DepositInfo>,
},
ClaimedDeposits {
claimed_deposits: Vec<DepositInfo>,
},
PaymentSucceeded {
payment: Payment,
},
PaymentPending {
payment: Payment,
},
PaymentFailed {
payment: Payment,
},
AutoOptimization {
optimization_event: AutoOptimizationEvent,
},
LightningAddressChanged {
lightning_address: Option<LightningAddressInfo>,
},
NewDeposits {
new_deposits: Vec<DepositInfo>,
},
}Expand description
Events emitted by the SDK
Variants§
Synced
Emitted when the wallet has been synchronized with the network
UnclaimedDeposits
Emitted when the SDK was unable to claim deposits
Fields
§
unclaimed_deposits: Vec<DepositInfo>ClaimedDeposits
Fields
§
claimed_deposits: Vec<DepositInfo>PaymentSucceeded
PaymentPending
PaymentFailed
AutoOptimization
Emitted while the background auto-optimizer is running.
Only fired from the auto path (enabled via
LeafOptimizationConfig::auto_enabled). Manually-triggered runs
via BreezSdk::optimize_leaves do not emit events — they return an
OptimizationOutcome instead.
Fields
§
optimization_event: AutoOptimizationEventLightningAddressChanged
Fields
§
lightning_address: Option<LightningAddressInfo>NewDeposits
Fields
§
new_deposits: Vec<DepositInfo>Trait Implementations§
Auto Trait Implementations§
impl Freeze for SdkEvent
impl RefUnwindSafe for SdkEvent
impl Send for SdkEvent
impl Sync for SdkEvent
impl Unpin for SdkEvent
impl UnsafeUnpin for SdkEvent
impl UnwindSafe for SdkEvent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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> 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§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.