Trait lightning::util::ser::Writeable [−][src]
pub trait Writeable { fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>; fn encode(&self) -> Vec<u8> { ... } fn encode_with_len(&self) -> Vec<u8> { ... } }
A trait that various rust-lightning types implement allowing them to be written out to a Writer
Required Methods
Provided Methods
fn encode(&self) -> Vec<u8>
Writes self out to a Vec
fn encode_with_len(&self) -> Vec<u8>
Writes self out to a Vec
Implementations on Foreign Types
impl Writeable for u64
[src]
impl Writeable for u64
impl Writeable for u32
[src]
impl Writeable for u32
impl Writeable for u16
[src]
impl Writeable for u16
impl Writeable for u8
[src]
impl Writeable for u8
impl Writeable for bool
[src]
impl Writeable for bool
impl Writeable for [u8; 32]
[src]
impl Writeable for [u8; 32]
impl Writeable for [u8; 33]
[src]
impl Writeable for [u8; 33]
impl Writeable for [u8; 64]
[src]
impl Writeable for [u8; 64]
impl Writeable for [u8; 1300]
[src]
impl Writeable for [u8; 1300]
impl<K, V> Writeable for HashMap<K, V> where
K: Writeable + Eq + Hash,
V: Writeable,
[src]
impl<K, V> Writeable for HashMap<K, V> where
K: Writeable + Eq + Hash,
V: Writeable,
impl Writeable for Vec<u8>
[src]
impl Writeable for Vec<u8>
impl Writeable for Vec<Signature>
[src]
impl Writeable for Vec<Signature>
impl Writeable for Script
[src]
impl Writeable for Script
impl Writeable for Option<Script>
[src]
impl Writeable for Option<Script>
impl Writeable for PublicKey
[src]
impl Writeable for PublicKey
impl Writeable for Sha256dHash
[src]
impl Writeable for Sha256dHash
impl Writeable for Signature
[src]
impl Writeable for Signature
Implementors
impl Writeable for AcceptChannel
impl Writeable for AnnouncementSignatures
impl Writeable for ChannelReestablish
impl Writeable for ClosingSigned
impl Writeable for CommitmentSigned
impl Writeable for FundingCreated
impl Writeable for FundingSigned
impl Writeable for FundingLocked
impl Writeable for GlobalFeatures
impl Writeable for LocalFeatures
impl Writeable for Init
impl Writeable for OpenChannel
impl Writeable for RevokeAndACK
impl Writeable for Shutdown
impl Writeable for UpdateFailHTLC
impl Writeable for UpdateFailMalformedHTLC
impl Writeable for UpdateFee
impl Writeable for UpdateFulfillHTLC
impl Writeable for UpdateAddHTLC
impl Writeable for Ping
impl Writeable for Pong
impl Writeable for UnsignedChannelAnnouncement
impl Writeable for ChannelAnnouncement
impl Writeable for ChannelUpdate
impl Writeable for ErrorMessage
impl Writeable for UnsignedNodeAnnouncement
impl Writeable for NodeAnnouncement