Struct xenet_packet::frame::TransportLayer
source · pub struct TransportLayer {
pub tcp: Option<TcpHeader>,
pub udp: Option<UdpHeader>,
}Expand description
Represents a transport layer.
Fields§
§tcp: Option<TcpHeader>§udp: Option<UdpHeader>Trait Implementations§
source§impl Clone for TransportLayer
impl Clone for TransportLayer
source§fn clone(&self) -> TransportLayer
fn clone(&self) -> TransportLayer
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 moresource§impl Debug for TransportLayer
impl Debug for TransportLayer
source§impl PartialEq for TransportLayer
impl PartialEq for TransportLayer
source§fn eq(&self, other: &TransportLayer) -> bool
fn eq(&self, other: &TransportLayer) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for TransportLayer
impl StructuralEq for TransportLayer
impl StructuralPartialEq for TransportLayer
Auto Trait Implementations§
impl RefUnwindSafe for TransportLayer
impl Send for TransportLayer
impl Sync for TransportLayer
impl Unpin for TransportLayer
impl UnwindSafe for TransportLayer
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