pub struct Channel {
pub channel_id: String,
pub funding_txid: LightningTxid,
pub funding_output_idx: u32,
pub capacity: u64,
pub local_balance: u64,
pub remote_balance: u64,
pub remote_pubkey: LightningPublicKey,
pub is_active: bool,
pub is_public: bool,
pub short_channel_id: Option<String>,
}Expand description
Channel information
Fields§
§channel_id: StringChannel ID
funding_txid: LightningTxidFunding transaction ID
funding_output_idx: u32Funding transaction output index
capacity: u64Channel capacity in satoshis
local_balance: u64Local balance in satoshis
remote_balance: u64Remote balance in satoshis
remote_pubkey: LightningPublicKeyRemote node public key
is_active: boolWhether the channel is active
is_public: boolWhether the channel is public
short_channel_id: Option<String>Short channel ID (once confirmed)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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,
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> 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 more