#[non_exhaustive]pub enum Ports<'a> {
Any,
Single(u16),
Range(u16, u16),
Unknown(&'a str),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl<'de, 'a> Deserialize<'de> for Ports<'a>where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for Ports<'a>where 'de: 'a,
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
source§impl<'a> PartialEq for Ports<'a>
impl<'a> PartialEq for Ports<'a>
impl<'a> StructuralPartialEq for Ports<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Ports<'a>
impl<'a> Send for Ports<'a>
impl<'a> Sync for Ports<'a>
impl<'a> Unpin for Ports<'a>
impl<'a> UnwindSafe for Ports<'a>
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