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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Readable for LockTime

Source§

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

Source§

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

Source§

impl Readable for Option<RAAMonitorUpdateBlockingAction>

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 BlockHash

Source§

impl Readable for ChainHash

Source§

impl Readable for ScriptBuf

Source§

impl Readable for OutPoint

Source§

impl Readable for Sequence

Source§

impl Readable for Transaction

Source§

impl Readable for TxIn

Source§

impl Readable for TxOut

Source§

impl Readable for Txid

Source§

impl Readable for Witness

Source§

impl Readable for Hmac<Hash>

Source§

impl Readable for Hash

Source§

impl Readable for Amount

Source§

impl Readable for SignedAmount

Source§

impl Readable for Weight

Source§

impl Readable for PaymentHash

Source§

impl Readable for PaymentPreimage

Source§

impl Readable for PaymentSecret

Source§

impl Readable for UntrustedString

Source§

impl Readable for Signature

Source§

impl Readable for PublicKey

Source§

impl Readable for SecretKey

Source§

impl Readable for Signature

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

Source§

impl Readable for Vec<Witness>

Source§

impl Readable for Vec<Signature>

Source§

impl Readable for Vec<BlindedMessagePath>

Source§

impl Readable for Vec<ChannelMonitorUpdate>

Source§

impl Readable for Vec<UpdateAddHTLC>

Source§

impl Readable for Vec<BlindedTail>

Source§

impl Readable for Vec<TrampolineHop>

Source§

impl Readable for Vec<SerialId>

Source§

impl Readable for Vec<MonitorUpdateCompletionAction>

Source§

impl Readable for Vec<PaymentClaimDetails>

Source§

impl Readable for Vec<PeerStorageMonitorHolder>

Source§

impl Readable for Vec<TxInMetadata>

Source§

impl Readable for Vec<TxOutMetadata>

Source§

impl Readable for Duration

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

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 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; 80]

Source§

impl Readable for [u8; 840]

Source§

impl Readable for [u8; 1300]

Source§

impl Readable for [u16; 8]

Source§

impl Readable for [u16; 32]

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<A, B, C, D, E, F, G> Readable for (A, B, C, D, E, F, G)
where A: Readable, B: Readable, C: Readable, D: Readable, E: Readable, F: Readable, G: Readable,

Source§

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

Source§

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

Source§

impl<T: LengthReadable> 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 AsyncPaymentsContext

Source§

impl Readable for MessageContext

Source§

impl Readable for OffersContext

Source§

impl Readable for PaymentContext

Source§

impl Readable for FundingInfo

Source§

impl Readable for HTLCHandlingFailureReason

Source§

impl Readable for PaidBolt12Invoice

Source§

impl Readable for PaymentPurpose

Source§

impl Readable for ChannelShutdownState

Source§

impl Readable for BlindedFailure

Source§

impl Readable for PendingHTLCRouting

Source§

impl Readable for Retry

Source§

impl Readable for LocalHTLCFailureReason

Source§

impl Readable for SocketAddress

Source§

impl Readable for NodeAnnouncementInfo

Source§

impl Readable for SpendableOutputDescriptor

Source§

impl Readable for MaxDustHTLCExposure

Source§

impl Readable for OutputSpendStatus

Source§

impl Readable for BlindedMessagePath

Source§

impl Readable for DNSResolverContext

Source§

impl Readable for AsyncBolt12OfferContext

Source§

impl Readable for BlindedPayInfo

Source§

impl Readable for Bolt12OfferContext

Source§

impl Readable for Bolt12RefundContext

Source§

impl Readable for PaymentConstraints

Source§

impl Readable for PaymentRelay

Source§

impl Readable for BlindedHop

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 Utxo

Source§

impl Readable for ClaimedHTLC

Source§

impl Readable for BuiltCommitmentTransaction

Source§

impl Readable for ChannelPublicKeys

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 ChannelCounterparty

Source§

impl Readable for ChannelDetails

Source§

impl Readable for CounterpartyForwardingInfo

Source§

impl Readable for InboundHTLCDetails

Source§

impl Readable for OutboundHTLCDetails

Source§

impl Readable for BlindedForward

Source§

impl Readable for InterceptId

Source§

impl Readable for PaymentId

Source§

impl Readable for PendingHTLCInfo

Source§

impl Readable for PhantomRouteHints

Source§

impl Readable for RecipientOnionFields

Source§

impl Readable for FundingTxInput

Source§

impl Readable for ClosingSignedFeeRange

Source§

impl Readable for FinalOnionHopData

Source§

impl Readable for FundingLocked

Source§

impl Readable for NextFunding

Source§

impl Readable for OnionPacket

Source§

impl Readable for ShutdownScript

Source§

impl Readable for ChannelId

Source§

impl Readable for AsyncReceiveOfferCache

Source§

impl Readable for InvoiceError

Source§

impl Readable for InvoiceRequestFields

Source§

impl Readable for Nonce

Source§

impl Readable for OfferId

Source§

impl Readable for HeldHtlcAvailable

Source§

impl Readable for OfferPaths

Source§

impl Readable for OfferPathsRequest

Source§

impl Readable for ReleaseHeldHtlc

Source§

impl Readable for ServeStaticInvoice

Source§

impl Readable for StaticInvoicePersisted

Source§

impl Readable for HumanReadableName

Source§

impl Readable for Responder

Source§

impl Readable for ChannelInfo

Source§

impl Readable for ChannelUpdateInfo

Source§

impl Readable for NodeAlias

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 RouteParametersConfig

Source§

impl Readable for TrampolineHop

Source§

impl Readable for ChannelLiquidities

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 TrackedSpendableOutput

Source§

impl Readable for BigSize

Source§

impl Readable for CollectionLength

Source§

impl Readable for Hostname

Source§

impl Readable for WithoutLength<BlindedHopFeatures>

Source§

impl Readable for WithoutLength<Bolt12InvoiceFeatures>

Source§

impl Readable for WithoutLength<ChannelTypeFeatures>

Source§

impl Readable for WithoutLength<InvoiceRequestFeatures>

Source§

impl Readable for WithoutLength<OfferFeatures>

Source§

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

Source§

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