Trait cashweb::bitcoin::Decodable[][src]

pub trait Decodable {
    type Error;
    pub fn decode<B>(buf: &mut B) -> Result<Self, Self::Error>
    where
        B: Buf
; }

Provides a common interface for the deserialization of bitcoin structures.

Associated Types

type Error[src]

Error associated with decoding a Bitcoin structure.

Loading content...

Required methods

pub fn decode<B>(buf: &mut B) -> Result<Self, Self::Error> where
    B: Buf
[src]

Decode a buffer.

Loading content...

Implementors

impl Decodable for Outpoint[src]

type Error = DecodeError

impl Decodable for Input[src]

type Error = DecodeError

impl Decodable for Output[src]

type Error = DecodeError

impl Decodable for Transaction[src]

type Error = DecodeError

impl Decodable for VarInt[src]

type Error = DecodeError

pub fn decode<B>(buf: &mut B) -> Result<VarInt, <VarInt as Decodable>::Error> where
    B: Buf
[src]

Parse variable-length integer.

Loading content...