Enum internet2::transport::socket_addr::FramingProtocol [−][src]
#[non_exhaustive]
pub enum FramingProtocol {
FramedRaw,
Zmtp,
Http,
Smtp,
}
Expand description
Possible transport-layer protocols with framing support
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
FramedRaw
Framed raw LNP messages according to BOLT-8 pt. 2 and LNPBP-18. Used with:
- Framed TCP socket connection
- Framed POSIX connections
Zmtp
Microservices connected using ZeroMQ protocol remotely (ZeroMQ Transport Protocol). Used with both IPC, Inproc and TCP-based SMQ connections.
Http
Text-encoded LNP messages over HTTP connection
Smtp
SMTP connection: asynchronous end-to-end-over SMTP information transfer which is useful for ultra-low bandwidth non-real-time connections like satellite networks
Trait Implementations
Decode with the given std::io::Read
instance; must either
construct an instance or return implementation-specific error type. Read more
Tries to deserialize byte array into the current type using
StrictDecode::strict_decode
Read more
Encode with the given std::io::Write
instance; must return result
with either amount of bytes encoded – or implementation-specific
error type. Read more
Serializes data as a byte array using StrictEncode::strict_encode
function Read more
Auto Trait Implementations
impl RefUnwindSafe for FramingProtocol
impl Send for FramingProtocol
impl Sync for FramingProtocol
impl Unpin for FramingProtocol
impl UnwindSafe for FramingProtocol
Blanket Implementations
Mutably borrows from an owned value. Read more