Enum strict_encoding::net::Transport [−][src]
#[repr(u8)]
#[non_exhaustive]
pub enum Transport {
Tcp,
Udp,
Mtcp,
Quic,
}
Expand description
Supported transport protocols
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Normal TCP
Normal UDP
Multi-path TCP version
More efficient UDP version under development by Google and consortium of other internet companies
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
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 Transport
impl UnwindSafe for Transport
Blanket Implementations
Mutably borrows from an owned value. Read more