Trait lightning::util::ser::Writeable [−][src]
A trait that various rust-lightning types implement allowing them to be written out to a Writer
(C-not exported) as we only export serialization to/from byte arrays instead
Required methods
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>
[src]
Writes self out to the given Writer
Provided methods
fn encode(&self) -> Vec<u8>
[src]
Writes self out to a Vec
fn encode_with_len(&self) -> Vec<u8>
[src]
Writes self out to a Vec
Implementations on Foreign Types
impl<'a, T: Writeable> Writeable for &'a T
[src]
impl Writeable for u64
[src]
impl Writeable for u32
[src]
impl Writeable for u16
[src]
impl Writeable for u8
[src]
impl Writeable for bool
[src]
impl Writeable for [u8; 3]
[src]
impl Writeable for [u8; 4]
[src]
impl Writeable for [u8; 10]
[src]
impl Writeable for [u8; 16]
[src]
impl Writeable for [u8; 32]
[src]
impl Writeable for [u8; 33]
[src]
impl Writeable for [u8; 64]
[src]
impl Writeable for [u8; 1300]
[src]
impl<K, V> Writeable for HashMap<K, V> where
K: Writeable + Eq + Hash,
V: Writeable,
[src]
K: Writeable + Eq + Hash,
V: Writeable,
impl Writeable for Vec<u8>
[src]
impl Writeable for Vec<Signature>
[src]
impl Writeable for Script
[src]
impl Writeable for PublicKey
[src]
impl Writeable for SecretKey
[src]
impl Writeable for Sha256dHash
[src]
impl Writeable for Signature
[src]
impl<T: Writeable> Writeable for Option<T>
[src]
impl Writeable for Txid
[src]
impl Writeable for BlockHash
[src]
impl Writeable for OutPoint
[src]
impl Writeable for Transaction
[src]
impl Writeable for TxOut
[src]
impl<T: Writeable> Writeable for Mutex<T>
[src]
impl<A: Writeable, B: Writeable> Writeable for (A, B)
[src]
impl Writeable for Vec<HTLCOutputInCommitment>
[src]
(C-not exported) as users never need to call this directly
impl Writeable for Option<Vec<Option<(usize, Signature)>>>
[src]
impl Writeable for Vec<RouteHop>
[src]
(C-not exported)
Implementors
impl Writeable for SpendableOutputDescriptor
[src]
impl Writeable for NetAddress
[src]
impl Writeable for OptionalField<u64>
[src]
impl Writeable for OptionalField<Script>
[src]
impl Writeable for Event
[src]
impl Writeable for ChannelMonitorUpdate
[src]
impl Writeable for HTLCUpdate
[src]
impl Writeable for InMemorySigner
[src]
impl Writeable for lightning::chain::transaction::OutPoint
[src]
impl Writeable for BuiltCommitmentTransaction
[src]
impl Writeable for ChannelPublicKeys
[src]
impl Writeable for ChannelTransactionParameters
[src]
impl Writeable for CommitmentTransaction
[src]
impl Writeable for CounterpartyChannelTransactionParameters
[src]
impl Writeable for HTLCOutputInCommitment
[src]
impl Writeable for HolderCommitmentTransaction
[src]
impl Writeable for TxCreationKeys
[src]
impl Writeable for PaymentHash
[src]
impl Writeable for PaymentPreimage
[src]
impl Writeable for PaymentSecret
[src]
impl Writeable for AcceptChannel
[src]
impl Writeable for AnnouncementSignatures
[src]
impl Writeable for ChannelAnnouncement
[src]
impl Writeable for ChannelReestablish
[src]
impl Writeable for ChannelUpdate
[src]
impl Writeable for ClosingSigned
[src]
impl Writeable for CommitmentSigned
[src]
impl Writeable for ErrorMessage
[src]
impl Writeable for FundingCreated
[src]
impl Writeable for FundingLocked
[src]
impl Writeable for FundingSigned
[src]
impl Writeable for GossipTimestampFilter
[src]
impl Writeable for Init
[src]
impl Writeable for NodeAnnouncement
[src]
impl Writeable for OpenChannel
[src]
impl Writeable for Ping
[src]
impl Writeable for Pong
[src]
impl Writeable for QueryChannelRange
[src]
impl Writeable for QueryShortChannelIds
[src]
impl Writeable for ReplyChannelRange
[src]
impl Writeable for ReplyShortChannelIdsEnd
[src]
impl Writeable for RevokeAndACK
[src]
impl Writeable for Shutdown
[src]
impl Writeable for UnsignedChannelAnnouncement
[src]
impl Writeable for UnsignedChannelUpdate
[src]
impl Writeable for UnsignedNodeAnnouncement
[src]
impl Writeable for UpdateAddHTLC
[src]
impl Writeable for UpdateFailHTLC
[src]
impl Writeable for UpdateFailMalformedHTLC
[src]
impl Writeable for UpdateFee
[src]
impl Writeable for UpdateFulfillHTLC
[src]
impl Writeable for ChannelInfo
[src]
impl Writeable for DirectionalChannelInfo
[src]
impl Writeable for NetworkGraph
[src]
impl Writeable for NodeAnnouncementInfo
[src]
impl Writeable for NodeInfo
[src]
impl Writeable for RoutingFees
[src]
impl Writeable for Route
[src]
impl Writeable for ChannelConfig
[src]
impl<Signer: Sign> Writeable for ChannelMonitor<Signer>
[src]
impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> Writeable for ChannelManager<Signer, M, T, K, F, L> where
M::Target: Watch<Signer>,
T::Target: BroadcasterInterface,
K::Target: KeysInterface<Signer = Signer>,
F::Target: FeeEstimator,
L::Target: Logger,
[src]
M::Target: Watch<Signer>,
T::Target: BroadcasterInterface,
K::Target: KeysInterface<Signer = Signer>,
F::Target: FeeEstimator,
L::Target: Logger,