pub enum TransportProtocol {
Tcp {
src_port: Option<Port>,
dst_port: Option<Port>,
},
Udp {
src_port: Option<Port>,
dst_port: Option<Port>,
},
Icmp,
Icmpv6,
}Expand description
Extension type for fnet_matchers::PacketTransportProtocol.
Variants§
Trait Implementations§
Source§impl Clone for TransportProtocol
impl Clone for TransportProtocol
Source§fn clone(&self) -> TransportProtocol
fn clone(&self) -> TransportProtocol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TransportProtocol
impl Debug for TransportProtocol
Source§impl From<TransportProtocol> for PacketTransportProtocol
impl From<TransportProtocol> for PacketTransportProtocol
Source§fn from(matcher: TransportProtocol) -> Self
fn from(matcher: TransportProtocol) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TransportProtocol
impl PartialEq for TransportProtocol
Source§fn eq(&self, other: &TransportProtocol) -> bool
fn eq(&self, other: &TransportProtocol) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<PacketTransportProtocol> for TransportProtocol
impl TryFrom<PacketTransportProtocol> for TransportProtocol
Source§type Error = TransportProtocolError
type Error = TransportProtocolError
The type returned in the event of a conversion error.
impl StructuralPartialEq 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
Source§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.