pub enum TransportHeader {
UDP(UDPHeader),
TCP(TCPHeader),
ICMP(ICMP6Header),
}
Expand description
This defines the currently supported TransportHeader
types.
The contents of each header is encapsulated by the enum type. Note
that this definition of TransportHeader
s means that recursive
headers are not supported. As of now, there is no support for
sending raw IP packets without a transport header. Currently we
accept the overhead of copying these structs in/out of an
OptionalCell in udp_send.rs
.
Variants§
Trait Implementations§
Source§impl Clone for TransportHeader
impl Clone for TransportHeader
Source§fn clone(&self) -> TransportHeader
fn clone(&self) -> TransportHeader
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for TransportHeader
Auto Trait Implementations§
impl Freeze for TransportHeader
impl RefUnwindSafe for TransportHeader
impl Send for TransportHeader
impl Sync for TransportHeader
impl Unpin for TransportHeader
impl UnwindSafe for TransportHeader
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