pub enum TransportService {
Tcp(u16),
Udp(u16),
Icmp(IcmpSpec),
IpProtocol(u8),
Any,
}Expand description
Transport-level representation of a firewall service definition.
Feature flags:
serde– Enables serialization for transport types and containers.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for TransportService
impl Clone for TransportService
Source§fn clone(&self) -> TransportService
fn clone(&self) -> TransportService
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 TransportService
impl Debug for TransportService
Source§impl Display for TransportService
impl Display for TransportService
Source§impl FromStr for TransportService
impl FromStr for TransportService
Source§impl Hash for TransportService
impl Hash for TransportService
Source§impl Ord for TransportService
impl Ord for TransportService
Source§fn cmp(&self, other: &TransportService) -> Ordering
fn cmp(&self, other: &TransportService) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TransportService
impl PartialEq for TransportService
Source§impl PartialOrd for TransportService
impl PartialOrd for TransportService
impl Eq for TransportService
impl StructuralPartialEq for TransportService
Auto Trait Implementations§
impl Freeze for TransportService
impl RefUnwindSafe for TransportService
impl Send for TransportService
impl Sync for TransportService
impl Unpin for TransportService
impl UnwindSafe for TransportService
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