[−][src]Enum lnpbp::short_id::Descriptor
Variants
Fields of OnchainBlock
block_height: u32
block_checksum: BlockChecksum
Fields of OnchainTransaction
Fields of OnchainTxInput
Fields of OnchainTxOutput
Fields of OffchainTransaction
tx_checksum: TxChecksum
Fields of OffchainTxInput
tx_checksum: TxChecksum
input_index: u16
Fields of OffchainTxOutput
tx_checksum: TxChecksum
output_index: u16
Implementations
impl Descriptor
[src]
pub fn try_validity(&self) -> Result<(), Error>
[src]
pub fn is_onchain(&self) -> bool
[src]
pub fn is_offchain(&self) -> bool
[src]
pub fn upgraded(
&self,
index: u16,
dimension: Option<Dimension>
) -> Result<Self, Error>
[src]
&self,
index: u16,
dimension: Option<Dimension>
) -> Result<Self, Error>
pub fn downgraded(self) -> Result<Self, Error>
[src]
pub fn get_block_height(&self) -> Option<u32>
[src]
pub fn get_block_checksum(&self) -> Option<u8>
[src]
pub fn get_tx_checksum(&self) -> Option<u64>
[src]
pub fn get_tx_index(&self) -> Option<u16>
[src]
pub fn get_input_index(&self) -> Option<u16>
[src]
pub fn get_output_index(&self) -> Option<u16>
[src]
pub fn try_into_u64(self) -> Result<u64, Error>
[src]
Trait Implementations
impl Clone for Descriptor
[src]
fn clone(&self) -> Descriptor
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Descriptor
[src]
impl Debug for Descriptor
[src]
impl Default for Descriptor
[src]
impl Display for Descriptor
[src]
impl From<ShortId> for Descriptor
[src]
impl TryFrom<Descriptor> for ShortId
[src]
Auto Trait Implementations
impl RefUnwindSafe for Descriptor
[src]
impl Send for Descriptor
[src]
impl Sync for Descriptor
[src]
impl Unpin for Descriptor
[src]
impl UnwindSafe for Descriptor
[src]
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> 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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,