Enum capsules_extra::net::ipv6::TransportHeader
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)