Struct lnp::channel::TxGraph [−][src]
Fields
cmt_version: i32
cmt_locktime: u32
cmt_sequence: u32
cmt_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]
R: TxRole,
I: TxIndex,
pub fn tx_mut<R, I>(&mut self, role: R, index: I) -> Option<&mut Psbt> where
R: TxRole,
I: TxIndex,
[src]
R: TxRole,
I: TxIndex,
pub fn insert_tx<R, I>(&mut self, role: R, index: I, psbt: Psbt) -> Option<Psbt> where
R: TxRole,
I: TxIndex,
[src]
R: TxRole,
I: TxIndex,
pub fn len(&self) -> usize
[src]
pub fn last_index<R>(&self, role: R) -> usize where
R: TxRole,
[src]
R: TxRole,
pub fn render(&self) -> Vec<Psbt>
[src]
pub fn render_cmt(&self) -> Psbt
[src]
pub fn iter(&self) -> GraphIter<'_>ⓘ
[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]
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
[src]
pub fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
[src]
impl StrictEncode for TxGraph
[src]
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
[src]
pub fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,