pub enum ChannelStatus {
Ok,
Pending,
Offline,
UnbalancedForSend,
UnbalancedForReceive,
Closed,
Error,
}Expand description
This is an enum representing the status of a channel on the Lightning Network.
Variants§
Ok
The channel is online and ready to send and receive funds.
Pending
The channel has been created, but the Bitcoin transaction that initiates it still needs to be confirmed on the Bitcoin blockchain.
Offline
The channel is not available, likely because the peer is not online.
UnbalancedForSend
The channel is behaving properly, but its remote balance is much higher than its local balance so it is not balanced properly for sending funds out.
UnbalancedForReceive
The channel is behaving properly, but its remote balance is much lower than its local balance so it is not balanced properly for receiving funds.
Closed
The channel has been closed. Information about the channel is still available for historical purposes but the channel cannot be used anymore.
Error
Something unexpected happened and we cannot determine the status of this channel. Please try again later or contact the support.
Trait Implementations§
Source§impl Clone for ChannelStatus
impl Clone for ChannelStatus
Source§fn clone(&self) -> ChannelStatus
fn clone(&self) -> ChannelStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChannelStatus
impl Debug for ChannelStatus
Source§impl<'de> Deserialize<'de> for ChannelStatus
impl<'de> Deserialize<'de> for ChannelStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for ChannelStatus
impl Display for ChannelStatus
Source§impl From<ChannelStatus> for Value
impl From<ChannelStatus> for Value
Source§fn from(val: ChannelStatus) -> Self
fn from(val: ChannelStatus) -> Self
Auto Trait Implementations§
impl Freeze for ChannelStatus
impl RefUnwindSafe for ChannelStatus
impl Send for ChannelStatus
impl Sync for ChannelStatus
impl Unpin for ChannelStatus
impl UnwindSafe for ChannelStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.