pub enum Strategy {
Single(u16),
Multiple(Vec<u16>),
Dynamic(Option<Range<u16>>),
}Expand description
The Strategy used to determine if a given Port is valid according to the Strategy and its parameters
Variants§
Single(u16)
Only the given Port is accepted and every other one is rejected
Multiple(Vec<u16>)
Accepts the Ports in the Vector
Dynamic(Option<Range<u16>>)
Accepts all the Ports in the Range
Implementations§
Trait Implementations§
impl StructuralPartialEq for Strategy
Auto Trait Implementations§
impl Freeze for Strategy
impl RefUnwindSafe for Strategy
impl Send for Strategy
impl Sync for Strategy
impl Unpin for Strategy
impl UnsafeUnpin for Strategy
impl UnwindSafe for Strategy
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