Struct bitcoins::enc::encoder::BitcoinEncoder [−][src]
pub struct BitcoinEncoder<P: NetworkParams>(_);
Expand description
The standard encoder for Bitcoin networks. Parameterized by a NetworkParams
type and an
coins_bip32::Encoder
. It exposes
Trait Implementations
A type representing the user-facing address, with any disambiguating information.
type Error = EncodingError
type Error = EncodingError
An error type that will be returned in case of encoding errors
type RecipientIdentifier = ScriptPubkey
type RecipientIdentifier = ScriptPubkey
A type representing the in-protocol recipient. This is usually different from the
Address type. The encoder converts between Strings
, Address
es, and
RecipientIdentifier
s Read more
Attempt to encode a RecipientIdentifier
as an Address
.
Decode a RecipientIdentifier
from an Address
. Addresses should be defined such that
this cannot fail. Read more
Attempt to convert a string into an Address
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<P> RefUnwindSafe for BitcoinEncoder<P>
impl<P> Send for BitcoinEncoder<P>
impl<P> Sync for BitcoinEncoder<P>
impl<P> Unpin for BitcoinEncoder<P>
impl<P> UnwindSafe for BitcoinEncoder<P>
Blanket Implementations
Mutably borrows from an owned value. Read more