pub struct OnchainResolvingFees {
pub swap_fees: Option<SwapToLightningFees>,
pub sweep_onchain_fee_estimate: Amount,
pub sats_per_vbyte: u32,
}
Expand description
Contains the fee information for the options to resolve funds that have moved on-chain.
This can occur due to channel closes, or swaps that failed to resolve in the available period.
Fields§
§swap_fees: Option<SwapToLightningFees>
Fees to swap the funds back to lightning using LightningNode::swap_channel_close_funds_to_lightning
or LightningNode::swap_failed_swap_funds_to_lightning
.
Only available if enough funds are there to swap.
sweep_onchain_fee_estimate: Amount
Estimate of the fees for sending the funds on-chain using LightningNode::sweep_funds_from_channel_closes
or LightningNode::resolve_failed_swap
.
The exact fees will be known when calling LightningNode::prepare_sweep_funds_from_channel_closes
or LightningNode::prepare_resolve_failed_swap
.
sats_per_vbyte: u32
The fee rate used to compute swaps_fees
and sweep_onchain_fee_estimate
.
It should be provided when swapping funds back to lightning or when sweeping funds
to on-chain to ensure the same fee rate is used.
Auto Trait Implementations§
impl Freeze for OnchainResolvingFees
impl RefUnwindSafe for OnchainResolvingFees
impl Send for OnchainResolvingFees
impl Sync for OnchainResolvingFees
impl Unpin for OnchainResolvingFees
impl UnwindSafe for OnchainResolvingFees
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> 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, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Read more§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 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