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

Writes self out to the given Writer

Provided Methods

Important traits for Vec<u8>

Writes self out to a Vec

Important traits for Vec<u8>

Writes self out to a Vec

Implementations on Foreign Types

impl Writeable for u64
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

impl Writeable for u32
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

impl Writeable for u16
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

impl Writeable for u8
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

impl Writeable for bool
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

impl Writeable for [u8; 32]
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

impl Writeable for [u8; 33]
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

impl Writeable for [u8; 64]
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

impl Writeable for [u8; 1300]
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

impl<K, V> Writeable for HashMap<K, V> where
    K: Writeable + Eq + Hash,
    V: Writeable
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

impl Writeable for Vec<u8>
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

impl Writeable for Vec<Signature>
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

impl Writeable for Script
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

impl Writeable for Option<Script>
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

impl Writeable for PublicKey
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

impl Writeable for Sha256dHash
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

impl Writeable for Signature
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

Implementors