#[repr(u8)]pub enum HostProtocol {
Ipv4Udp = 1,
Ipv4Tcp = 2,
}Expand description
The transport an endpoint speaks, as the host protocol octet of an HPAI names it.
Variants§
Ipv4Udp = 1
IPv4 over UDP: the connectionless transport discovery and routing use, and the one where a tunnelling connection is acknowledged frame by frame because nothing underneath it orders what arrives.
Ipv4Tcp = 2
IPv4 over TCP: the connection-oriented transport, where the stream itself orders and retransmits what a UDP peer has to handle above the transport.
Implementations§
Trait Implementations§
Source§impl Clone for HostProtocol
impl Clone for HostProtocol
Source§fn clone(&self) -> HostProtocol
fn clone(&self) -> HostProtocol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HostProtocol
Source§impl Debug for HostProtocol
impl Debug for HostProtocol
impl Eq for HostProtocol
Source§impl Hash for HostProtocol
impl Hash for HostProtocol
Source§impl PartialEq for HostProtocol
impl PartialEq for HostProtocol
impl StructuralPartialEq for HostProtocol
Auto Trait Implementations§
impl Freeze for HostProtocol
impl RefUnwindSafe for HostProtocol
impl Send for HostProtocol
impl Sync for HostProtocol
impl Unpin for HostProtocol
impl UnsafeUnpin for HostProtocol
impl UnwindSafe for HostProtocol
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more