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§
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl Readable for Result<SocketAddress, u8>
impl Readable for Result<SocketAddress, u8>
fn read<R: Read>( reader: &mut R ) -> Result<Result<SocketAddress, u8>, DecodeError>
source§impl Readable for Vec<SocketAddress>
impl Readable for Vec<SocketAddress>
source§impl Readable for Vec<ChannelMonitorUpdate>
impl Readable for Vec<ChannelMonitorUpdate>
source§impl Readable for Vec<UpdateAddHTLC>
impl Readable for Vec<UpdateAddHTLC>
source§impl Readable for Vec<BlindedTail>
impl Readable for Vec<BlindedTail>
source§impl Readable for Duration
impl Readable for Duration
This is not exported to bindings users as Duration
s are simply mapped as ints.
Implementors§
impl Readable for PaymentContext
impl Readable for PaymentFailureReason
impl Readable for PaymentPurpose
impl Readable for BlindedFailure
impl Readable for ChannelShutdownState
impl Readable for PendingHTLCRouting
impl Readable for Retry
impl Readable for SocketAddress
impl Readable for SpendableOutputDescriptor
impl Readable for MaxDustHTLCExposure
impl Readable for OutputSpendStatus
impl Readable for Bolt12OfferContext
impl Readable for Bolt12RefundContext
impl Readable for PaymentConstraints
impl Readable for PaymentRelay
impl Readable for UnknownPaymentContext
impl Readable for BlindedHop
impl Readable for BlindedPath
impl Readable for ChannelMonitorUpdate
impl Readable for HTLCUpdate
impl Readable for BestBlock
impl Readable for ClaimId
impl Readable for lightning::chain::transaction::OutPoint
impl Readable for ClaimedHTLC
impl Readable for BuiltCommitmentTransaction
impl Readable for ChannelPublicKeys
impl Readable for ChannelTransactionParameters
impl Readable for CommitmentTransaction
impl Readable for CounterpartyChannelTransactionParameters
impl Readable for CounterpartyCommitmentSecrets
impl Readable for HTLCOutputInCommitment
impl Readable for HolderCommitmentTransaction
impl Readable for TxCreationKeys
impl Readable for DelayedPaymentBasepoint
impl Readable for DelayedPaymentKey
impl Readable for HtlcBasepoint
impl Readable for HtlcKey
impl Readable for RevocationBasepoint
impl Readable for RevocationKey
impl Readable for BlindedForward
impl Readable for ChannelCounterparty
impl Readable for ChannelDetails
impl Readable for CounterpartyForwardingInfo
impl Readable for InboundHTLCDetails
Available on non-
fuzzing
only.impl Readable for InterceptId
impl Readable for OutboundHTLCDetails
Available on non-
fuzzing
only.