Enum pnet::transport::TransportProtocol
source · pub enum TransportProtocol {
Ipv4(IpNextHeaderProtocol),
Ipv6(IpNextHeaderProtocol),
}
Expand description
Represents a transport layer protocol.
Variants§
Ipv4(IpNextHeaderProtocol)
Represents a transport protocol built on top of IPv4
Ipv6(IpNextHeaderProtocol)
Represents a transport protocol built on top of IPv6
Trait Implementations§
source§impl Clone for TransportProtocol
impl Clone for TransportProtocol
source§fn clone(&self) -> TransportProtocol
fn clone(&self) -> TransportProtocol
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 TransportProtocol
Auto Trait Implementations§
impl Freeze for TransportProtocol
impl RefUnwindSafe for TransportProtocol
impl Send for TransportProtocol
impl Sync for TransportProtocol
impl Unpin for TransportProtocol
impl UnwindSafe for TransportProtocol
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