Struct reserve_port::ScanningPortFinder
source · pub struct ScanningPortFinder<const MIN: u16, const MAX: u16> { /* private fields */ }
Expand description
A PortFinder
which will scan for ports along a known range.
Implementations§
Trait Implementations§
source§impl<const MIN: u16, const MAX: u16> PortFinder for ScanningPortFinder<MIN, MAX>
impl<const MIN: u16, const MAX: u16> PortFinder for ScanningPortFinder<MIN, MAX>
fn find_port_for_ip(&mut self, ip: IpAddr) -> Option<(TcpListener, SocketAddr)>
fn find_port(&mut self) -> Option<u16>
Auto Trait Implementations§
impl<const MIN: u16, const MAX: u16> RefUnwindSafe for ScanningPortFinder<MIN, MAX>
impl<const MIN: u16, const MAX: u16> Send for ScanningPortFinder<MIN, MAX>
impl<const MIN: u16, const MAX: u16> Sync for ScanningPortFinder<MIN, MAX>
impl<const MIN: u16, const MAX: u16> Unpin for ScanningPortFinder<MIN, MAX>
impl<const MIN: u16, const MAX: u16> UnwindSafe for ScanningPortFinder<MIN, MAX>
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