Trait lightning::util::ser::Readable

source ·
pub trait Readablewhere
    Self: Sized,{
    // Required method
    fn read<R: Read>(reader: &mut R) -> Result<Self, DecodeError>;
}
Expand description

A trait that various LDK types implement allowing them to be read in from a Read.

This is not exported to bindings users as we only export serialization to/from byte arrays instead

Required Methods§

source

fn read<R: Read>(reader: &mut R) -> Result<Self, DecodeError>

Reads a Self in from the given Read.

Implementations on Foreign Types§

source§

impl<A: Readable, B: Readable> Readable for Vec<(A, B)>

source§

impl Readable for TxOut

source§

impl Readable for Transaction

source§

impl<T: Readable> Readable for Mutex<T>

source§

impl Readable for Vec<BlindedTail>

source§

impl<T> Readable for HashSet<T>where T: Readable + Eq + Hash,

source§

impl<A: Readable, B: Readable> Readable for (A, B)

source§

impl Readable for [u16; 8]

source§

impl Readable for [u8; 32]

source§

impl<A: Readable, B: Readable, C: Readable> Readable for (A, B, C)

source§

impl Readable for Vec<Signature>

source§

impl Readable for String

source§

impl Readable for PublicKey

source§

impl Readable for SecretKey

source§

impl Readable for OutPoint

source§

impl Readable for [u8; 3]

source§

impl Readable for Signature

source§

impl<T: Readable> Readable for Option<T>

source§

impl Readable for Duration

source§

impl Readable for u32

source§

impl Readable for Option<Vec<Option<(usize, Signature)>>>

source§

fn read<R: Read>(reader: &mut R) -> Result<Self, DecodeError>

source§

impl Readable for BlockHash

source§

impl<A: Readable, B: Readable, C: Readable, D: Readable> Readable for (A, B, C, D)

source§

impl Readable for Script

source§

impl Readable for u16

source§

impl Readable for Vec<MonitorUpdateCompletionAction>

source§

impl Readable for [u8; 1300]

source§

impl Readable for bool

source§

impl Readable for ()

source§

fn read<R: Read>(_r: &mut R) -> Result<Self, DecodeError>

source§

impl Readable for Txid

source§

impl<K, V> Readable for BTreeMap<K, V>where K: Readable + Eq + Ord, V: MaybeReadable,

source§

impl<T: Readable> Readable for Box<T>

source§

impl Readable for [u8; 16]

source§

impl Readable for u8

source§

impl Readable for [u8; 4]

source§

impl Readable for u128

source§

impl Readable for [u8; 64]

source§

impl<K, V> Readable for HashMap<K, V>where K: Readable + Eq + Hash, V: MaybeReadable,

source§

impl Readable for [u8; 66]

source§

impl Readable for Sha256dHash

source§

impl Readable for Result<NetAddress, u8>

source§

impl Readable for u64

source§

impl Readable for [u8; 12]

source§

impl Readable for Vec<u8>

source§

impl Readable for [u8; 33]

source§

impl Readable for Signature

source§

impl Readable for ChainHash

Implementors§

source§

impl Readable for SpendableOutputDescriptor

source§

impl Readable for PaymentFailureReason

source§

impl Readable for PaymentPurpose

source§

impl Readable for NetAddress

source§

impl Readable for OptionalField<u64>

source§

impl Readable for OptionalField<Script>

source§

impl Readable for BlindedHop

source§

impl Readable for BlindedPath

source§

impl Readable for ChannelMonitorUpdate

source§

impl Readable for HTLCUpdate

source§

impl Readable for DelayedPaymentOutputDescriptor

source§

impl Readable for StaticPaymentOutputDescriptor

source§

impl Readable for lightning::chain::transaction::OutPoint

source§

impl Readable for BuiltCommitmentTransaction

source§

impl Readable for ChannelPublicKeys

source§

impl Readable for ChannelTransactionParameters

source§

impl Readable for CommitmentTransaction

source§

impl Readable for CounterpartyChannelTransactionParameters

source§

impl Readable for CounterpartyCommitmentSecrets

source§

impl Readable for HTLCOutputInCommitment

source§

impl Readable for HolderCommitmentTransaction

source§

impl Readable for TxCreationKeys

source§

impl Readable for ChannelCounterparty

source§

impl Readable for ChannelDetails

source§

impl Readable for CounterpartyForwardingInfo

source§

impl Readable for InterceptId

source§

impl Readable for PaymentId

source§

impl Readable for PhantomRouteHints

source§

impl Readable for RecipientOnionFields

source§

impl Readable for AcceptChannel

source§

impl Readable for AnnouncementSignatures

source§

impl Readable for ChannelAnnouncement

source§

impl Readable for ChannelReady

source§

impl Readable for ChannelReestablish

source§

impl Readable for ChannelUpdate

source§

impl Readable for ClosingSigned

source§

impl Readable for ClosingSignedFeeRange

source§

impl Readable for CommitmentSigned

source§

impl Readable for ErrorMessage

source§

impl Readable for FundingCreated

source§

impl Readable for FundingSigned

source§

impl Readable for GossipTimestampFilter

source§

impl Readable for Init

source§

impl Readable for NodeAnnouncement

source§

impl Readable for OnionMessage

source§

impl Readable for OpenChannel

source§

impl Readable for Ping

source§

impl Readable for Pong

source§

impl Readable for QueryChannelRange

source§

impl Readable for QueryShortChannelIds

source§

impl Readable for ReplyChannelRange

source§

impl Readable for ReplyShortChannelIdsEnd

source§

impl Readable for RevokeAndACK

source§

impl Readable for Shutdown

source§

impl Readable for UnsignedChannelAnnouncement

source§

impl Readable for UnsignedChannelUpdate

source§

impl Readable for UnsignedNodeAnnouncement

source§

impl Readable for UpdateAddHTLC

source§

impl Readable for UpdateFailHTLC

source§

impl Readable for UpdateFailMalformedHTLC

source§

impl Readable for UpdateFee

source§

impl Readable for UpdateFulfillHTLC

source§

impl Readable for WarningMessage

source§

impl Readable for ShutdownScript

source§

impl Readable for PaymentHash

source§

impl Readable for PaymentPreimage

source§

impl Readable for PaymentSecret

source§

impl Readable for BlindedPayInfo

source§

impl Readable for ChannelInfo

source§

impl Readable for ChannelUpdateInfo

source§

impl Readable for NodeAlias

source§

impl Readable for NodeAnnouncementInfo

source§

impl Readable for NodeId

source§

impl Readable for NodeInfo

source§

impl Readable for RoutingFees

source§

impl Readable for BlindedTail

source§

impl Readable for InFlightHtlcs

source§

impl Readable for Route

source§

impl Readable for RouteHint

source§

impl Readable for RouteHintHop

source§

impl Readable for RouteHop

source§

impl Readable for RouteParameters

source§

impl Readable for ChannelConfig

source§

impl Readable for UntrustedString

source§

impl Readable for BigSize

source§

impl Readable for Hostname

source§

impl Readable for WithoutLength<String>

source§

impl Readable for BlindedHopFeatures

source§

impl Readable for ChannelFeatures

source§

impl Readable for ChannelTypeFeatures

source§

impl Readable for InitFeatures

source§

impl Readable for InvoiceFeatures

source§

impl Readable for NodeFeatures

source§

impl<T: MaybeReadable> Readable for WithoutLength<Vec<T>>

source§

impl<T: Readable> Readable for RequiredWrapper<T>

source§

impl<T: Context> Readable for WithoutLength<Features<T>>