pub struct ActionsRequired { /* private fields */ }
Implementations§
source§impl ActionsRequired
impl ActionsRequired
sourcepub fn list(&self) -> Result<Vec<ActionRequiredItem>>
pub fn list(&self) -> Result<Vec<ActionRequiredItem>>
List action required items.
Returns a list of actionable items. They can be:
- Uncompleted offers (either available for collection or failed).
- Unresolved failed swaps.
- Available funds resulting from channel closes.
Requires network: yes
sourcepub fn dismiss_topup(&self, id: String) -> Result<()>
pub fn dismiss_topup(&self, id: String) -> Result<()>
Hides the topup with the given id. Can be called on expired topups so that they stop being returned
by ActionsRequired::list
.
Topup id can be obtained from OfferKind::Pocket
.
Requires network: yes
sourcepub fn hide_unrecoverable_channel_close_funds_item(&self) -> Result<()>
pub fn hide_unrecoverable_channel_close_funds_item(&self) -> Result<()>
Hides the channel close action required item in case the amount cannot be recovered due to it being too small. The item will reappear once the amount of funds changes or onchain-fees go down enough to make the amount recoverable.
Requires network: no
sourcepub fn hide_unrecoverable_failed_swap_item(
&self,
failed_swap_info: FailedSwapInfo,
) -> Result<()>
pub fn hide_unrecoverable_failed_swap_item( &self, failed_swap_info: FailedSwapInfo, ) -> Result<()>
Hides the unresolved failed swap action required item in case the amount cannot be recovered due to it being too small. The item will reappear once the onchain-fees go down enough to make the amount recoverable.
Requires network: no
Auto Trait Implementations§
impl Freeze for ActionsRequired
impl !RefUnwindSafe for ActionsRequired
impl Send for ActionsRequired
impl Sync for ActionsRequired
impl Unpin for ActionsRequired
impl !UnwindSafe for ActionsRequired
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