pub struct LoopbackPorts;Expand description
The real host: sockets on the loopback. Never all interfaces: binding 0.0.0.0 made Windows Firewall ask whether the app may accept connections from the network (launcher #230).
Trait Implementations§
Source§impl Clone for LoopbackPorts
impl Clone for LoopbackPorts
impl Copy for LoopbackPorts
Source§impl Debug for LoopbackPorts
impl Debug for LoopbackPorts
Source§impl Default for LoopbackPorts
impl Default for LoopbackPorts
Source§impl HostPorts for LoopbackPorts
impl HostPorts for LoopbackPorts
Source§fn in_use(&self, port: u16, protocol: Protocol) -> bool
fn in_use(&self, port: u16, protocol: Protocol) -> bool
Taken when the IPv4 loopback can’t be bound, or the IPv6 one is held (a browser opening
localhost may reach it first); an absent IPv6 loopback doesn’t count.
Auto Trait Implementations§
impl Freeze for LoopbackPorts
impl RefUnwindSafe for LoopbackPorts
impl Send for LoopbackPorts
impl Sync for LoopbackPorts
impl Unpin for LoopbackPorts
impl UnsafeUnpin for LoopbackPorts
impl UnwindSafe for LoopbackPorts
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