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 duplicate 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
impl Eq for TransportLayer
impl StructuralPartialEq for TransportLayer
Auto Trait Implementations§
impl Freeze for TransportLayer
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