Trait lightning::util::ser::Readable

source ·
pub trait Readable
where 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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

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

source§

impl Readable for Result<SocketAddress, u8>

source§

impl Readable for bool

source§

impl Readable for i8

source§

impl Readable for i16

source§

impl Readable for i32

source§

impl Readable for i64

source§

impl Readable for u8

source§

impl Readable for u16

source§

impl Readable for u32

source§

impl Readable for u64

source§

impl Readable for u128

source§

impl Readable for ()

source§

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

source§

impl Readable for VecDeque<(Event, Option<EventCompletionAction>)>

source§

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

source§

impl Readable for String

source§

impl Readable for Vec<SocketAddress>

source§

impl Readable for Vec<u8>

source§

impl Readable for Vec<ChannelMonitorUpdate>

source§

impl Readable for Vec<UpdateAddHTLC>

source§

impl Readable for Vec<BlindedTail>

source§

impl Readable for Vec<Witness>

source§

impl Readable for Vec<Signature>

source§

impl Readable for Vec<MonitorUpdateCompletionAction>

source§

impl Readable for Duration

This is not exported to bindings users as Durations are simply mapped as ints.

source§

impl Readable for ChainHash

source§

impl Readable for ScriptBuf

source§

impl Readable for OutPoint

source§

impl Readable for Transaction

source§

impl Readable for TxOut

source§

impl Readable for Witness

source§

impl Readable for BlockHash

source§

impl Readable for Txid

source§

impl Readable for Hash

source§

impl Readable for Signature

source§

impl Readable for PublicKey

source§

impl Readable for SecretKey

source§

impl Readable for Signature

source§

impl Readable for [u8; 3]

source§

impl Readable for [u8; 4]

source§

impl Readable for [u8; 12]

source§

impl Readable for [u8; 16]

source§

impl Readable for [u8; 32]

source§

impl Readable for [u8; 33]

source§

impl Readable for [u8; 64]

source§

impl Readable for [u8; 66]

source§

impl Readable for [u8; 1300]

source§

impl Readable for [u16; 8]

source§

impl Readable for [u16; 32]

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl<T: Readable> Readable for RwLock<T>

Implementors§

source§

impl Readable for PaymentContext

source§

impl Readable for PaymentFailureReason

source§

impl Readable for PaymentPurpose

source§

impl Readable for BlindedFailure

source§

impl Readable for ChannelShutdownState

source§

impl Readable for PendingHTLCRouting

source§

impl Readable for Retry

source§

impl Readable for SocketAddress

source§

impl Readable for SpendableOutputDescriptor

source§

impl Readable for MaxDustHTLCExposure

source§

impl Readable for OutputSpendStatus

source§

impl Readable for Bolt12OfferContext

source§

impl Readable for Bolt12RefundContext

source§

impl Readable for PaymentConstraints

source§

impl Readable for PaymentRelay

source§

impl Readable for UnknownPaymentContext

source§

impl Readable for BlindedHop

source§

impl Readable for BlindedPath

source§

impl Readable for ChannelMonitorUpdate

source§

impl Readable for HTLCUpdate

source§

impl Readable for BestBlock

source§

impl Readable for ClaimId

source§

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

source§

impl Readable for ClaimedHTLC

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 DelayedPaymentBasepoint

source§

impl Readable for DelayedPaymentKey

source§

impl Readable for HtlcBasepoint

source§

impl Readable for HtlcKey

source§

impl Readable for RevocationBasepoint

source§

impl Readable for RevocationKey

source§

impl Readable for BlindedForward

source§

impl Readable for ChannelCounterparty

source§

impl Readable for ChannelDetails

source§

impl Readable for CounterpartyForwardingInfo

source§

impl Readable for InboundHTLCDetails

Available on non-fuzzing only.
source§

impl Readable for InterceptId

source§

impl Readable for OutboundHTLCDetails

Available on non-fuzzing only.
source§

impl Readable for PaymentId

source§

impl Readable for PendingHTLCInfo

source§

impl Readable for PhantomRouteHints

source§

impl Readable for RecipientOnionFields

source§

impl Readable for AcceptChannel

source§

impl Readable for AcceptChannelV2

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 FinalOnionHopData

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 OnionPacket

source§

impl Readable for OpenChannel

source§

impl Readable for OpenChannelV2

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 Splice

source§

impl Readable for SpliceAck

source§

impl Readable for SpliceLocked

source§

impl Readable for Stfu

source§

impl Readable for TxAbort

source§

impl Readable for TxAckRbf

source§

impl Readable for TxAddInput

source§

impl Readable for TxAddOutput

source§

impl Readable for TxComplete

source§

impl Readable for TxInitRbf

source§

impl Readable for TxRemoveInput

source§

impl Readable for TxRemoveOutput

source§

impl Readable for TxSignatures

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 ChannelId

source§

impl Readable for PaymentHash

source§

impl Readable for PaymentPreimage

source§

impl Readable for PaymentSecret

source§

impl Readable for BlindedPayInfo

source§

impl Readable for InvoiceError

source§

impl Readable for InvoiceRequestFields

source§

impl Readable for OfferId

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 ChannelDerivationParameters

source§

impl Readable for DelayedPaymentOutputDescriptor

source§

impl Readable for HTLCDescriptor

source§

impl Readable for StaticPaymentOutputDescriptor

source§

impl Readable for ChannelConfig

source§

impl Readable for UntrustedString

source§

impl Readable for TrackedSpendableOutput

source§

impl Readable for BigSize

source§

impl Readable for Hostname

source§

impl Readable for TransactionU16LenLimited

source§

impl Readable for WithoutLength<UntrustedString>

source§

impl Readable for WithoutLength<String>

source§

impl Readable for WithoutLength<ScriptBuf>

source§

impl Readable for BlindedHopFeatures

source§

impl Readable for Bolt11InvoiceFeatures

source§

impl Readable for Bolt12InvoiceFeatures

source§

impl Readable for ChannelFeatures

source§

impl Readable for ChannelTypeFeatures

source§

impl Readable for InitFeatures

source§

impl Readable for NodeFeatures

source§

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

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>>