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 duplicate 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 Freeze for RandomPortAllocator
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