pub struct TxGraph<'channel> {
pub cmt_version: i32,
pub cmt_locktime: u32,
pub cmt_sequence: u32,
pub cmt_outs: Vec<Output>,
/* private fields */
}Fields§
§cmt_version: i32§cmt_locktime: u32§cmt_sequence: u32§cmt_outs: Vec<Output>Implementations§
Source§impl<'channel> TxGraph<'channel>
impl<'channel> TxGraph<'channel>
Sourcepub fn funding(&self) -> &&'channel Funding
pub fn funding(&self) -> &&'channel Funding
Method borrowing TxGraph::funding field.
Read-only data for extensions on the number of channel parties
Sourcepub fn cmt_version(&self) -> &i32
pub fn cmt_version(&self) -> &i32
Method borrowing TxGraph::cmt_version field.
Sourcepub fn cmt_locktime(&self) -> &u32
pub fn cmt_locktime(&self) -> &u32
Method borrowing TxGraph::cmt_locktime field.
Sourcepub fn cmt_sequence(&self) -> &u32
pub fn cmt_sequence(&self) -> &u32
Method borrowing TxGraph::cmt_sequence field.
Sourcepub fn cmt_outs(&self) -> &Vec<Output>
pub fn cmt_outs(&self) -> &Vec<Output>
Method borrowing TxGraph::cmt_outs field.
Source§impl<'channel> TxGraph<'channel>where
Self: 'channel,
impl<'channel> TxGraph<'channel>where
Self: 'channel,
pub fn from_funding(funding: &'channel Funding) -> TxGraph<'channel>
pub fn tx<R, I>(&self, role: R, index: I) -> Option<&Psbt>
pub fn tx_mut<R, I>(&mut self, role: R, index: I) -> Option<&mut Psbt>
pub fn insert_tx<R, I>(&mut self, role: R, index: I, psbt: Psbt) -> Option<Psbt>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn last_index<R>(&self, role: R) -> usizewhere
R: TxRole,
pub fn render(&self) -> Vec<Psbt>
pub fn render_cmt(&self) -> Psbt
pub fn iter(&self) -> GraphIter<'_, '_> ⓘ
pub fn vec_mut(&mut self) -> Vec<(u16, u64, &mut Psbt)>
Trait Implementations§
impl<'channel> Eq for TxGraph<'channel>
impl<'channel> StructuralPartialEq for TxGraph<'channel>
Auto Trait Implementations§
impl<'channel> Freeze for TxGraph<'channel>
impl<'channel> RefUnwindSafe for TxGraph<'channel>
impl<'channel> Send for TxGraph<'channel>
impl<'channel> Sync for TxGraph<'channel>
impl<'channel> Unpin for TxGraph<'channel>
impl<'channel> UnwindSafe for TxGraph<'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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.