pub enum PortType {
Tcp,
Udp,
Both,
}
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PortType
impl<'de> Deserialize<'de> for PortType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for PortType
impl Eq for PortType
impl StructuralPartialEq for PortType
Auto Trait Implementations§
impl Freeze for PortType
impl RefUnwindSafe for PortType
impl Send for PortType
impl Sync for PortType
impl Unpin for PortType
impl UnwindSafe for PortType
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