[][src]Trait lightning::util::ser::Writeable

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

fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>

Writes self out to the given Writer

Loading content...

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

Loading content...

Implementations on Foreign Types

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]

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 OutPoint[src]

Loading content...

Implementors

impl Writeable for NetAddress[src]

impl Writeable for OptionalField<Script>[src]

impl Writeable for ChannelKeys[src]

impl Writeable for PaymentHash[src]

impl Writeable for PaymentPreimage[src]

impl Writeable for ClaimTxBumpMaterial[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 GlobalFeatures[src]

impl Writeable for Init[src]

impl Writeable for LocalFeatures[src]

impl Writeable for NodeAnnouncement[src]

impl Writeable for OpenChannel[src]

impl Writeable for Ping[src]

impl Writeable for Pong[src]

impl Writeable for RevokeAndACK[src]

impl Writeable for Shutdown[src]

impl Writeable for UnsignedChannelAnnouncement[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 Route[src]

impl Writeable for Router[src]

impl Writeable for ChannelConfig[src]

impl<'a> Writeable for ChannelManager<'a>[src]

Loading content...