Struct lnp::channel::TxGraph[][src]

pub struct TxGraph {
    pub cmt_version: i32,
    pub cmt_locktime: u32,
    pub cmt_sequence: u32,
    pub cmt_outs: Vec<TxOut>,
    // some fields omitted
}

Fields

cmt_version: i32cmt_locktime: u32cmt_sequence: u32cmt_outs: Vec<TxOut>

Implementations

impl TxGraph[src]

pub fn funding_parties(&self) -> &u8[src]

pub fn funding_threshold(&self) -> &u8[src]

pub fn funding_tx(&self) -> &Psbt[src]

pub fn funding_outpoint(&self) -> &OutPoint[src]

pub fn commitment_outpoint(&self) -> &OutPoint[src]

pub fn cmt_version(&self) -> &i32[src]

pub fn cmt_locktime(&self) -> &u32[src]

pub fn cmt_sequence(&self) -> &u32[src]

pub fn cmt_outs(&self) -> &Vec<TxOut>[src]

pub fn graph(&self) -> &BTreeMap<u16, BTreeMap<u64, Psbt>>[src]

impl TxGraph[src]

pub fn tx<R, I>(&self, role: R, index: I) -> Option<&Psbt> where
    R: TxRole,
    I: TxIndex
[src]

pub fn tx_mut<R, I>(&mut self, role: R, index: I) -> Option<&mut Psbt> where
    R: TxRole,
    I: TxIndex
[src]

pub fn insert_tx<R, I>(&mut self, role: R, index: I, psbt: Psbt) -> Option<Psbt> where
    R: TxRole,
    I: TxIndex
[src]

pub fn len(&self) -> usize[src]

pub fn last_index<R>(&self, role: R) -> usize where
    R: TxRole
[src]

pub fn render(&self) -> Vec<Psbt>[src]

pub fn render_cmt(&self) -> Psbt[src]

pub fn iter(&self) -> GraphIter<'_>

Notable traits for GraphIter<'a>

impl<'a> Iterator for GraphIter<'a> type Item = (u16, u64, &'a Psbt);
[src]

pub fn vec_mut(&mut self) -> Vec<(u16, u64, &mut Psbt)>[src]

Trait Implementations

impl Clone for TxGraph[src]

impl Default for TxGraph[src]

impl PartialEq<TxGraph> for TxGraph[src]

impl StrictDecode for TxGraph[src]

impl StrictEncode for TxGraph[src]

impl StructuralPartialEq for TxGraph[src]

Auto Trait Implementations

impl RefUnwindSafe for TxGraph

impl Send for TxGraph

impl Sync for TxGraph

impl Unpin for TxGraph

impl UnwindSafe for TxGraph

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,