pub struct FakePorts { /* private fields */ }Available on crate feature
fake only.Expand description
Ports answered from a test’s setup (feature fake): the free ones handed out in order. An
embedder’s tests script those only; the runner’s own also mark ports taken, addresses
answering and binds refused.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FakePorts
impl Forget for FakePorts
impl Move for FakePorts
impl RefUnwindSafe for FakePortswhere
Mutex<BTreeSet<(u16, Protocol)>>: RefUnwindSafe,
Mutex<VecDeque<u16>>: RefUnwindSafe,
Mutex<BTreeSet<(String, u16)>>: RefUnwindSafe,
Mutex<Option<ErrorKind>>: RefUnwindSafe,
impl Send for FakePorts
impl Sync for FakePorts
impl Unpin for FakePorts
impl UnsafeUnpin for FakePortswhere
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const LeafNode<(u16, Protocol), SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<((u16, Protocol), SetValZST)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u16>: UnsafeUnpin,
*const LeafNode<(String, u16), SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<((String, u16), SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for FakePortswhere
Mutex<BTreeSet<(u16, Protocol)>>: UnwindSafe,
Mutex<VecDeque<u16>>: UnwindSafe,
Mutex<BTreeSet<(String, u16)>>: UnwindSafe,
Mutex<Option<ErrorKind>>: UnwindSafe,
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