Enum internet2::transport::socket_addr::FramingProtocol
source · [−]#[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
sourceimpl Clone for FramingProtocol
impl Clone for FramingProtocol
sourcefn clone(&self) -> FramingProtocol
fn clone(&self) -> FramingProtocol
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FramingProtocol
impl Debug for FramingProtocol
sourceimpl Display for FramingProtocol
impl Display for FramingProtocol
sourceimpl FromStr for FramingProtocol
impl FromStr for FramingProtocol
sourceimpl Hash for FramingProtocol
impl Hash for FramingProtocol
sourceimpl PartialEq<FramingProtocol> for FramingProtocol
impl PartialEq<FramingProtocol> for FramingProtocol
sourceimpl StrictDecode for FramingProtocol
impl StrictDecode for FramingProtocol
sourcefn strict_decode<D: Read>(d: D) -> Result<Self, Error>
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
Decode with the given std::io::Read
instance; must either
construct an instance or return implementation-specific error type. Read more
sourcefn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
Tries to deserialize byte array into the current type using
StrictDecode::strict_decode
Read more
sourceimpl StrictEncode for FramingProtocol
impl StrictEncode for FramingProtocol
sourcefn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
Encode with the given std::io::Write
instance; must return result
with either amount of bytes encoded – or implementation-specific
error type. Read more
sourcefn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
Serializes data as a byte array using StrictEncode::strict_encode
function Read more
impl Copy for FramingProtocol
impl Eq for FramingProtocol
impl StructuralEq for FramingProtocol
impl StructuralPartialEq for FramingProtocol
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more