Trait breez_sdk_liquid::lightning::util::ser::Readable

pub trait Readable: Sized {
    // Required method
    fn read<R>(reader: &mut R) -> Result<Self, DecodeError>
       where R: Read;
}
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§

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

Reads a Self in from the given Read.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

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

§

fn read<R>( reader: &mut R, ) -> Result<Option<Vec<Option<(usize, Signature)>>>, DecodeError>
where R: Read,

§

impl Readable for Result<SocketAddress, u8>

§

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

§

impl Readable for bool

§

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

§

impl Readable for i8

§

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

§

impl Readable for i16

§

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

§

impl Readable for i32

§

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

§

impl Readable for i64

§

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

§

impl Readable for u8

§

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

§

impl Readable for u16

§

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

§

impl Readable for u32

§

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

§

impl Readable for u64

§

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

§

impl Readable for u128

§

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

§

impl Readable for ()

§

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

§

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

§

fn read<R>( reader: &mut R, ) -> Result<VecDeque<(Event, Option<EventCompletionAction>)>, DecodeError>
where R: Read,

§

impl Readable for String

§

fn read<R>(r: &mut R) -> Result<String, DecodeError>
where R: Read,

§

impl Readable for Vec<u8>

§

fn read<R>(r: &mut R) -> Result<Vec<u8>, DecodeError>
where R: Read,

§

impl Readable for Vec<Witness>

§

fn read<R>(r: &mut R) -> Result<Vec<Witness>, DecodeError>
where R: Read,

§

impl Readable for Vec<Signature>

§

fn read<R>(r: &mut R) -> Result<Vec<Signature>, DecodeError>
where R: Read,

§

impl Readable for Vec<ChannelMonitorUpdate>

§

impl Readable for Vec<BlindedTail>

§

impl Readable for Vec<MonitorUpdateCompletionAction>

§

fn read<R>(r: &mut R) -> Result<Vec<MonitorUpdateCompletionAction>, DecodeError>
where R: Read,

§

impl Readable for Duration

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

§

fn read<R>(r: &mut R) -> Result<Duration, DecodeError>
where R: Read,

§

impl Readable for [u8; 3]

§

fn read<R>(r: &mut R) -> Result<[u8; 3], DecodeError>
where R: Read,

§

impl Readable for [u8; 4]

§

fn read<R>(r: &mut R) -> Result<[u8; 4], DecodeError>
where R: Read,

§

impl Readable for [u8; 12]

§

fn read<R>(r: &mut R) -> Result<[u8; 12], DecodeError>
where R: Read,

§

impl Readable for [u8; 16]

§

fn read<R>(r: &mut R) -> Result<[u8; 16], DecodeError>
where R: Read,

§

impl Readable for [u8; 32]

§

fn read<R>(r: &mut R) -> Result<[u8; 32], DecodeError>
where R: Read,

§

impl Readable for [u8; 33]

§

fn read<R>(r: &mut R) -> Result<[u8; 33], DecodeError>
where R: Read,

§

impl Readable for [u8; 64]

§

fn read<R>(r: &mut R) -> Result<[u8; 64], DecodeError>
where R: Read,

§

impl Readable for [u8; 66]

§

fn read<R>(r: &mut R) -> Result<[u8; 66], DecodeError>
where R: Read,

§

impl Readable for [u8; 1300]

§

fn read<R>(r: &mut R) -> Result<[u8; 1300], DecodeError>
where R: Read,

§

impl Readable for [u16; 8]

§

fn read<R>(r: &mut R) -> Result<[u16; 8], DecodeError>
where R: Read,

§

impl Readable for [u16; 32]

§

fn read<R>(r: &mut R) -> Result<[u16; 32], DecodeError>
where R: Read,

§

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

§

fn read<R>(r: &mut R) -> Result<(A, B), DecodeError>
where R: Read,

§

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

§

fn read<R>(r: &mut R) -> Result<Vec<(A, B)>, DecodeError>
where R: Read,

§

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

§

fn read<R>(r: &mut R) -> Result<(A, B, C), DecodeError>
where R: Read,

§

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

§

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

§

fn read<R>(r: &mut R) -> Result<BTreeMap<K, V>, DecodeError>
where R: Read,

§

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

§

fn read<R>(r: &mut R) -> Result<HashMap<K, V>, DecodeError>
where R: Read,

§

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

§

fn read<R>(r: &mut R) -> Result<Option<T>, DecodeError>
where R: Read,

§

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

§

fn read<R>(r: &mut R) -> Result<Box<T>, DecodeError>
where R: Read,

§

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

§

fn read<R>(r: &mut R) -> Result<HashSet<T>, DecodeError>
where R: Read,

§

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

§

fn read<R>(r: &mut R) -> Result<Mutex<T>, DecodeError>
where R: Read,

§

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

§

fn read<R>(r: &mut R) -> Result<RwLock<T>, DecodeError>
where R: Read,

Implementors§

§

impl Readable for PaymentFailureReason

§

impl Readable for PaymentPurpose

§

impl Readable for ChannelShutdownState

§

impl Readable for Retry

§

impl Readable for SocketAddress

§

impl Readable for SpendableOutputDescriptor

§

impl Readable for MaxDustHTLCExposure

§

impl Readable for ChainHash

§

impl Readable for BlockHash

§

impl Readable for breez_sdk_liquid::bitcoin::OutPoint

§

impl Readable for Script

§

impl Readable for Transaction

§

impl Readable for TxOut

§

impl Readable for Txid

§

impl Readable for Witness

§

impl Readable for breez_sdk_liquid::bitcoin::util::key::secp256k1::ecdsa::Signature

§

impl Readable for Hash

§

impl Readable for breez_sdk_liquid::bitcoin::util::key::secp256k1::schnorr::Signature

§

impl Readable for PublicKey

§

impl Readable for SecretKey

§

impl Readable for PaymentSecret

§

impl Readable for RouteHint

§

impl Readable for RouteHintHop

§

impl Readable for RoutingFees

§

impl Readable for PaymentConstraints

§

impl Readable for PaymentRelay

§

impl Readable for ReceiveTlvs

§

impl Readable for BlindedHop

§

impl Readable for BlindedPath

§

impl Readable for ChannelMonitorUpdate

§

impl Readable for HTLCUpdate

§

impl Readable for ClaimId

§

impl Readable for breez_sdk_liquid::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 ChannelCounterparty

§

impl Readable for ChannelDetails

§

impl Readable for CounterpartyForwardingInfo

§

impl Readable for InterceptId

§

impl Readable for PaymentId

§

impl Readable for PhantomRouteHints

§

impl Readable for RecipientOnionFields

§

impl Readable for Features<BlindedHopContext>

§

impl Readable for Features<Bolt11InvoiceContext>

§

impl Readable for Features<Bolt12InvoiceContext>

§

impl Readable for Features<ChannelContext>

§

impl Readable for Features<ChannelTypeContext>

§

impl Readable for Features<InitContext>

§

impl Readable for Features<NodeContext>

§

impl Readable for AcceptChannel

§

impl Readable for AcceptChannelV2

§

impl Readable for AnnouncementSignatures

§

impl Readable for ChannelAnnouncement

§

impl Readable for ChannelReady

§

impl Readable for ChannelReestablish

§

impl Readable for ChannelUpdate

§

impl Readable for ClosingSigned

§

impl Readable for ClosingSignedFeeRange

§

impl Readable for CommitmentSigned

§

impl Readable for ErrorMessage

§

impl Readable for FundingCreated

§

impl Readable for FundingSigned

§

impl Readable for GossipTimestampFilter

§

impl Readable for Init

§

impl Readable for NodeAnnouncement

§

impl Readable for OnionMessage

§

impl Readable for OpenChannel

§

impl Readable for OpenChannelV2

§

impl Readable for Ping

§

impl Readable for Pong

§

impl Readable for QueryChannelRange

§

impl Readable for QueryShortChannelIds

§

impl Readable for ReplyChannelRange

§

impl Readable for ReplyShortChannelIdsEnd

§

impl Readable for RevokeAndACK

§

impl Readable for Shutdown

§

impl Readable for TxAbort

§

impl Readable for TxAckRbf

§

impl Readable for TxAddInput

§

impl Readable for TxAddOutput

§

impl Readable for TxComplete

§

impl Readable for TxInitRbf

§

impl Readable for TxRemoveInput

§

impl Readable for TxRemoveOutput

§

impl Readable for TxSignatures

§

impl Readable for UnsignedChannelAnnouncement

§

impl Readable for UnsignedChannelUpdate

§

impl Readable for UnsignedNodeAnnouncement

§

impl Readable for UpdateAddHTLC

§

impl Readable for UpdateFailHTLC

§

impl Readable for UpdateFailMalformedHTLC

§

impl Readable for UpdateFee

§

impl Readable for UpdateFulfillHTLC

§

impl Readable for WarningMessage

§

impl Readable for ShutdownScript

§

impl Readable for ChannelId

§

impl Readable for PaymentHash

§

impl Readable for PaymentPreimage

§

impl Readable for BlindedPayInfo

§

impl Readable for InvoiceError

§

impl Readable for ChannelInfo

§

impl Readable for ChannelUpdateInfo

§

impl Readable for NodeAlias

§

impl Readable for NodeAnnouncementInfo

§

impl Readable for NodeId

§

impl Readable for NodeInfo

§

impl Readable for BlindedTail

§

impl Readable for InFlightHtlcs

§

impl Readable for Route

§

impl Readable for RouteHop

§

impl Readable for RouteParameters

§

impl Readable for ChannelDerivationParameters

§

impl Readable for DelayedPaymentOutputDescriptor

§

impl Readable for HTLCDescriptor

§

impl Readable for StaticPaymentOutputDescriptor

§

impl Readable for ChannelConfig

§

impl Readable for UntrustedString

§

impl Readable for BigSize

§

impl Readable for Hostname

§

impl Readable for TransactionU16LenLimited

§

impl Readable for WithoutLength<Script>

§

impl Readable for WithoutLength<UntrustedString>

§

impl Readable for WithoutLength<String>

§

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

§

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

§

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