Struct netsim_embed_nat::RandomPortAllocator
source · pub struct RandomPortAllocator;
Trait Implementations§
source§impl Clone for RandomPortAllocator
impl Clone for RandomPortAllocator
source§fn clone(&self) -> RandomPortAllocator
fn clone(&self) -> RandomPortAllocator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RandomPortAllocator
impl Debug for RandomPortAllocator
source§impl Default for RandomPortAllocator
impl Default for RandomPortAllocator
source§fn default() -> RandomPortAllocator
fn default() -> RandomPortAllocator
Returns the “default value” for a type. Read more
source§impl PortAllocator for RandomPortAllocator
impl PortAllocator for RandomPortAllocator
fn next_port(&mut self, _local_endpoint: SocketAddrV4) -> u16
Auto Trait Implementations§
impl RefUnwindSafe for RandomPortAllocator
impl Send for RandomPortAllocator
impl Sync for RandomPortAllocator
impl Unpin for RandomPortAllocator
impl UnwindSafe for RandomPortAllocator
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