Pylon::Wire
stdlibs IO reports failures by throwing exceptions. We want to avoid exceptions as they
can leave the application in undesirable states but also make potential failures invisible
to the type system. Here we effectively wrap the session's stream IO to explicitly handle
the exceptions as they happen and convert them into values. This allows us to encode the
potential failures into the return type and force callers to handle them as needed.
Constants
CAPACITY_HINT_CAP = 4096
DIGEST_BYTES = 32
FORMAT = IO::ByteFormat::LittleEndian
IDENTITY = "PYLON"
MAX_CONTENT_BYTES = (256 * 1024) * 1024
MAX_FIELD_BYTES = 1 << 20
PROTOCOL = 11_u32
Class methods
Nested types
- Pylon::Wire::Bases
- Pylon::Wire::Binary
- Pylon::Wire::Checksums
- Pylon::Wire::Chunks
- Pylon::Wire::Closed
- Pylon::Wire::ContentKind
- Pylon::Wire::ContentSource
- Pylon::Wire::Contents
- Pylon::Wire::Dictionary
- Pylon::Wire::Greeting
- Pylon::Wire::Message
- Pylon::Wire::Payload
- Pylon::Wire::Reader
- Pylon::Wire::Splice
- Pylon::Wire::Spliced