#[non_exhaustive]pub enum PortPart {
Number(String),
Wildcard,
}Expand description
A parsed port-part (CSP3 §2.3.1). Kept as a digit string rather
than a numeric type: the ABNF (1*DIGIT) does not bound the value to
a valid 16-bit port number, and this crate does not normalize.
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§
impl Eq for PortPart
impl StructuralPartialEq for PortPart
Auto Trait Implementations§
impl Freeze for PortPart
impl RefUnwindSafe for PortPart
impl Send for PortPart
impl Sync for PortPart
impl Unpin for PortPart
impl UnsafeUnpin for PortPart
impl UnwindSafe for PortPart
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