Module lightning::util::ser [−][src]
A very simple serialization framework which is used to serialize/deserialize messages as well as ChannelsManagers and ChannelMonitors.
Constants
MAX_BUF_SIZE | serialization buffer size |
Traits
MaybeReadable | A trait that various rust-lightning types implement allowing them to (maybe) be read in from a Read |
Readable | A trait that various rust-lightning types implement allowing them to be read in from a Read |
ReadableArgs | A trait that various higher-level rust-lightning types implement allowing them to be read in from a Read given some additional set of arguments which is required to deserialize. |
Writeable | A trait that various rust-lightning types implement allowing them to be written out to a Writer |
Writer | A trait that is similar to std::io::Write but has one extra function which can be used to size buffers being written into. An impl is provided for any type that also impls std::io::Write which simply ignores size hints. |