pub struct ClosingSigned {
pub channel_id: [u8; 32],
pub fee_satoshis: u64,
pub signature: Signature,
pub fee_range: Option<ClosingSignedFeeRange>,
}
Expand description
A closing_signed message to be sent or received from a peer
Fields
channel_id: [u8; 32]
The channel ID
fee_satoshis: u64
The proposed total fee for the closing transaction
signature: Signature
A signature on the closing transaction
fee_range: Option<ClosingSignedFeeRange>
The minimum and maximum fees which the sender is willing to accept, provided only by new nodes.
Trait Implementations
sourceimpl Clone for ClosingSigned
impl Clone for ClosingSigned
sourcefn clone(&self) -> ClosingSigned
fn clone(&self) -> ClosingSigned
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ClosingSigned
impl Debug for ClosingSigned
sourceimpl PartialEq<ClosingSigned> for ClosingSigned
impl PartialEq<ClosingSigned> for ClosingSigned
sourcefn eq(&self, other: &ClosingSigned) -> bool
fn eq(&self, other: &ClosingSigned) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ClosingSigned) -> bool
fn ne(&self, other: &ClosingSigned) -> bool
This method tests for !=
.
sourceimpl Readable for ClosingSigned
impl Readable for ClosingSigned
sourceimpl Writeable for ClosingSigned
impl Writeable for ClosingSigned
sourcefn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Writes self out to a Vec
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
impl StructuralPartialEq for ClosingSigned
Auto Trait Implementations
impl RefUnwindSafe for ClosingSigned
impl Send for ClosingSigned
impl Sync for ClosingSigned
impl Unpin for ClosingSigned
impl UnwindSafe for ClosingSigned
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more