Struct reserve_port::OsQueryPortFinder
source · pub struct OsQueryPortFinder {}
Expand description
A PortFinder
which will ask the OS for the port.
Implementations§
Trait Implementations§
source§impl PortFinder for OsQueryPortFinder
impl PortFinder for OsQueryPortFinder
fn find_port_for_ip(&mut self, ip: IpAddr) -> Option<(TcpListener, SocketAddr)>
fn find_port(&mut self) -> Option<u16>
Auto Trait Implementations§
impl RefUnwindSafe for OsQueryPortFinder
impl Send for OsQueryPortFinder
impl Sync for OsQueryPortFinder
impl Unpin for OsQueryPortFinder
impl UnwindSafe for OsQueryPortFinder
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