pub struct ClosingChannel {
pub counter_party: PublicKey,
pub temporary_channel_id: ChannelId,
pub channel_id: ChannelId,
pub rollback_state: Option<SignedChannel>,
pub buffer_transaction: Transaction,
pub contract_id: ContractId,
pub is_closer: bool,
}
Expand description
A channel is closing when its buffer transaction was broadcast or detected on chain.
Fields§
§counter_party: PublicKey
The secp256k1_zkp::PublicKey
of the counter party.
temporary_channel_id: ChannelId
The temporary crate::ChannelId
of the channel.
channel_id: ChannelId
The crate::ChannelId
for the channel.
rollback_state: Option<SignedChannel>
The previous state the channel was before being closed, if that state was the Signed
one,
otherwise is None
.
buffer_transaction: Transaction
The buffer transaction that was broadcast.
contract_id: ContractId
The crate::ContractId
of the contract that was used to close
the channel.
is_closer: bool
Whether the local party initiated the closing of the channel.
Trait Implementations§
Source§impl Clone for ClosingChannel
impl Clone for ClosingChannel
Source§fn clone(&self) -> ClosingChannel
fn clone(&self) -> ClosingChannel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Readable for ClosingChannel
impl Readable for ClosingChannel
Source§impl Writeable for ClosingChannel
impl Writeable for ClosingChannel
Auto Trait Implementations§
impl Freeze for ClosingChannel
impl RefUnwindSafe for ClosingChannel
impl Send for ClosingChannel
impl Sync for ClosingChannel
impl Unpin for ClosingChannel
impl UnwindSafe for ClosingChannel
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